kerneltest/e32test/defrag/perf/t_testdll.cpp
changeset 9 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32test/defrag/perf/t_testdll.cpp
       
    15 // Used to create t_defragdll0.dll
       
    16 // 
       
    17 //
       
    18 
       
    19 #include "u32std.h"
       
    20 #define TPS_DECLARE_ARRAY
       
    21 #include "t_testdll.h"
       
    22 
       
    23 
       
    24 TInt TestAlignment0(TInt aParam1, TInt aParam2);
       
    25 TInt TestAlignment255(TInt aParam1, TInt aParam2);
       
    26 
       
    27 extern "C" EXPORT_C TInt Init()
       
    28 	{
       
    29 	return KErrNone;
       
    30 	}
       
    31 
       
    32 extern "C" EXPORT_C TUint32 FunctionCount()
       
    33 	{
       
    34 	return PAGESTRESS_FUNC_COUNT;
       
    35 	}
       
    36 
       
    37 extern "C" EXPORT_C TInt CallFunction(TInt aParam1, TInt aParam2, TUint32 aIndex)
       
    38 	{
       
    39 	return CallTestFunc(aParam1, aParam2, aIndex);
       
    40 	}
       
    41 
       
    42 
       
    43 extern "C" EXPORT_C TInt SetClose()
       
    44 	{
       
    45 	return KErrNone;
       
    46 	}
       
    47 
       
    48 extern "C" EXPORT_C TAny *Function0Addr()
       
    49 	{
       
    50 	return (TAny *)&TestAlignment0;
       
    51 	}
       
    52 
       
    53 extern "C" EXPORT_C TAny *FunctionNAddr()
       
    54 	{
       
    55 	return (TAny *)&TestAlignment255;
       
    56 	}
       
    57