sl@0: // Copyright (c) 1999-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: // f32test\loader\dlltifc.h sl@0: // sl@0: // sl@0: sl@0: #ifndef __DLLTIFC_H__ sl@0: #define __DLLTIFC_H__ sl@0: #include sl@0: sl@0: #define DLLNUMOFFSET 43 sl@0: #define INC_BLOCK_SZ 1024 sl@0: sl@0: inline TInt BlkIValue(TInt aDllNum, TInt aIn) sl@0: {return (aDllNum+DLLNUMOFFSET)*INC_BLOCK_SZ+aIn;} sl@0: sl@0: #ifndef TMODULEHANDLE_DEFINED sl@0: #define TMODULEHANDLE_DEFINED sl@0: class TModuleHandle_dummy_class; sl@0: typedef TModuleHandle_dummy_class* TModuleHandle; sl@0: #endif sl@0: sl@0: struct SDllInfo sl@0: { sl@0: TInt iDllNum; sl@0: TInt iEntryPointAddress; // entry point address sl@0: TModuleHandle iModuleHandle; sl@0: }; sl@0: sl@0: class MDllList sl@0: { sl@0: public: sl@0: virtual TBool IsPresent(const SDllInfo& aInfo)=0; sl@0: virtual TInt Add(const SDllInfo& aInfo)=0; sl@0: virtual void MoveToEnd(TInt aPos)=0; sl@0: }; sl@0: sl@0: typedef TInt (*TInitFunction)(MDllList&); sl@0: typedef TInt (*TChkCFunction)(); sl@0: typedef TInt (*TBlkIFunction)(TInt); sl@0: typedef TInt (*TGetGenFunction)(); sl@0: typedef TInt (*TRBlkIFunction)(TInt, TInt); sl@0: typedef void (*TSetCloseLibFunction)(TInt); sl@0: sl@0: #define TLS_INDEX 1 sl@0: sl@0: #define INIT_ORDINAL 1 sl@0: #define CHECK_CONSTRUCTORS_ORDINAL 2 sl@0: #define BLOCK_INC_ORDINAL 3 sl@0: #define GENERATION_ORDINAL 4 sl@0: #define REC_BLOCK_INC_ORDINAL 5 sl@0: #define SET_CLOSE_LIB_ORDINAL 6 sl@0: sl@0: #endif