os/kernelhwsrv/kerneltest/e32test/dll/d_export.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2004-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\mmu\d_export.h
    15 // 
    16 //
    17 
    18 #ifndef __D_EXPORT_H__
    19 #define __D_EXPORT_H__
    20 
    21 #include <e32cmn.h>
    22 #ifndef __KERNEL_MODE__
    23 #include <e32std.h>
    24 #endif
    25 
    26 _LIT(KExportTestLddName,"d_export");
    27 
    28 IMPORT_C TInt ExportMultiplyFunction(TUint aNum0, TUint aNum1);	
    29 
    30 class RExportLdd : public RBusLogicalChannel
    31 	{
    32 public:
    33 	enum TControl
    34 		{
    35 		ERunExport,
    36 		};
    37 
    38 #ifndef __KERNEL_MODE__
    39 public:
    40 	inline TInt Open()
    41 		{
    42 		return DoCreate(KExportTestLddName,TVersion(),KNullUnit,NULL,NULL,EOwnerProcess,ETrue);
    43 		};
    44 	inline TInt RunExport(TUint aNum0, TUint aNum1)
    45 		{ return DoControl(ERunExport, (TAny*)aNum0, (TAny*)aNum1); }
    46 #endif
    47 	};
    48 
    49 
    50 #endif