1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/loader/security/dlltifc.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,65 @@
1.4 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// f32test\loader\dlltifc.h
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef __DLLTIFC_H__
1.22 +#define __DLLTIFC_H__
1.23 +#include <e32base.h>
1.24 +
1.25 +#define DLLNUMOFFSET 43
1.26 +#define INC_BLOCK_SZ 1024
1.27 +
1.28 +inline TInt BlkIValue(TInt aDllNum, TInt aIn)
1.29 + {return (aDllNum+DLLNUMOFFSET)*INC_BLOCK_SZ+aIn;}
1.30 +
1.31 +#ifndef TMODULEHANDLE_DEFINED
1.32 +#define TMODULEHANDLE_DEFINED
1.33 +class TModuleHandle_dummy_class;
1.34 +typedef TModuleHandle_dummy_class* TModuleHandle;
1.35 +#endif
1.36 +
1.37 +struct SDllInfo
1.38 + {
1.39 + TInt iDllNum;
1.40 + TInt iEntryPointAddress; // entry point address
1.41 + TModuleHandle iModuleHandle;
1.42 + };
1.43 +
1.44 +class MDllList
1.45 + {
1.46 +public:
1.47 + virtual TBool IsPresent(const SDllInfo& aInfo)=0;
1.48 + virtual TInt Add(const SDllInfo& aInfo)=0;
1.49 + virtual void MoveToEnd(TInt aPos)=0;
1.50 + };
1.51 +
1.52 +typedef TInt (*TInitFunction)(MDllList&);
1.53 +typedef TInt (*TChkCFunction)();
1.54 +typedef TInt (*TBlkIFunction)(TInt);
1.55 +typedef TInt (*TGetGenFunction)();
1.56 +typedef TInt (*TRBlkIFunction)(TInt, TInt);
1.57 +typedef void (*TSetCloseLibFunction)(TInt);
1.58 +
1.59 +#define TLS_INDEX 1
1.60 +
1.61 +#define INIT_ORDINAL 1
1.62 +#define CHECK_CONSTRUCTORS_ORDINAL 2
1.63 +#define BLOCK_INC_ORDINAL 3
1.64 +#define GENERATION_ORDINAL 4
1.65 +#define REC_BLOCK_INC_ORDINAL 5
1.66 +#define SET_CLOSE_LIB_ORDINAL 6
1.67 +
1.68 +#endif