sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test/defrag/perf/t_testdll.cpp sl@0: // Used to create t_defragdll0.dll sl@0: // sl@0: // sl@0: sl@0: #include "u32std.h" sl@0: #define TPS_DECLARE_ARRAY sl@0: #include "t_testdll.h" sl@0: sl@0: sl@0: TInt TestAlignment0(TInt aParam1, TInt aParam2); sl@0: TInt TestAlignment255(TInt aParam1, TInt aParam2); sl@0: sl@0: extern "C" EXPORT_C TInt Init() sl@0: { sl@0: return KErrNone; sl@0: } sl@0: sl@0: extern "C" EXPORT_C TUint32 FunctionCount() sl@0: { sl@0: return PAGESTRESS_FUNC_COUNT; sl@0: } sl@0: sl@0: extern "C" EXPORT_C TInt CallFunction(TInt aParam1, TInt aParam2, TUint32 aIndex) sl@0: { sl@0: return CallTestFunc(aParam1, aParam2, aIndex); sl@0: } sl@0: sl@0: sl@0: extern "C" EXPORT_C TInt SetClose() sl@0: { sl@0: return KErrNone; sl@0: } sl@0: sl@0: extern "C" EXPORT_C TAny *Function0Addr() sl@0: { sl@0: return (TAny *)&TestAlignment0; sl@0: } sl@0: sl@0: extern "C" EXPORT_C TAny *FunctionNAddr() sl@0: { sl@0: return (TAny *)&TestAlignment255; sl@0: } sl@0: