kerneltest/e32test/dll/t_dll.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 1994-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\dll\t_dll.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <e32std.h>
       
    19 #include <e32base.h>
       
    20 #include <e32test.h>
       
    21 #include <e32svr.h>
       
    22 #include <e32ver.h>
       
    23 
       
    24 class TestDll
       
    25 	{
       
    26 public:
       
    27 	IMPORT_C static TInt Data();
       
    28 	IMPORT_C static void SetData(TInt aValue);
       
    29 	IMPORT_C static TUint Test1();
       
    30 	IMPORT_C static TUint Test2();
       
    31 	IMPORT_C static TUint Server();
       
    32 	IMPORT_C static RSemaphore Sem();
       
    33 	};
       
    34 
       
    35 class TestDll1
       
    36 	{
       
    37 public:
       
    38 	IMPORT_C static TInt Data();
       
    39 	IMPORT_C static void SetData(TInt aValue);
       
    40 	IMPORT_C static TUint Test1();
       
    41 	IMPORT_C static TUint Test2();
       
    42 	IMPORT_C static TUint Server();
       
    43 	IMPORT_C static RSemaphore Sem();
       
    44 	IMPORT_C static TInt Attach(TBool aAttach);
       
    45 	IMPORT_C static TInt GlobalAlloc(TInt aSize);
       
    46 	IMPORT_C static TBool GlobalAllocated();
       
    47 	IMPORT_C static TInt GlobalRead(TInt aPos,TDes8 &aDes);
       
    48 	IMPORT_C static TInt GlobalWrite(TInt aPos,const TDesC8 &aDes);
       
    49 	};
       
    50 
       
    51 class TestDll2
       
    52 	{
       
    53 public:
       
    54 	IMPORT_C static TInt Data();
       
    55 	IMPORT_C static void SetData(TInt aValue);
       
    56 	IMPORT_C static TUint Test1();
       
    57 	IMPORT_C static TUint Test2();
       
    58 	IMPORT_C static TUint Server();
       
    59 	IMPORT_C static RSemaphore Sem();
       
    60 	IMPORT_C static TInt Attach(TBool aAttach);
       
    61 	IMPORT_C static TInt GlobalAlloc(TInt aSize);
       
    62 	IMPORT_C static TBool GlobalAllocated();
       
    63 	IMPORT_C static TInt GlobalRead(TInt aPos,TDes8 &aDes);
       
    64 	IMPORT_C static TInt GlobalWrite(TInt aPos,const TDesC8 &aDes);
       
    65 	};
       
    66