0
|
1 |
// Copyright (c) 1999-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 |
// f32test\loader\dlltifc.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __DLLTIFC_H__
|
|
19 |
#define __DLLTIFC_H__
|
|
20 |
#include <e32base.h>
|
|
21 |
|
|
22 |
#define DLLNUMOFFSET 43
|
|
23 |
#define INC_BLOCK_SZ 1024
|
|
24 |
|
|
25 |
inline TInt BlkIValue(TInt aDllNum, TInt aIn)
|
|
26 |
{return (aDllNum+DLLNUMOFFSET)*INC_BLOCK_SZ+aIn;}
|
|
27 |
|
|
28 |
#ifndef TMODULEHANDLE_DEFINED
|
|
29 |
#define TMODULEHANDLE_DEFINED
|
|
30 |
class TModuleHandle_dummy_class;
|
|
31 |
typedef TModuleHandle_dummy_class* TModuleHandle;
|
|
32 |
#endif
|
|
33 |
|
|
34 |
struct SDllInfo
|
|
35 |
{
|
|
36 |
TInt iDllNum;
|
|
37 |
TInt iEntryPointAddress; // entry point address
|
|
38 |
TModuleHandle iModuleHandle;
|
|
39 |
};
|
|
40 |
|
|
41 |
class MDllList
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
virtual TBool IsPresent(const SDllInfo& aInfo)=0;
|
|
45 |
virtual TInt Add(const SDllInfo& aInfo)=0;
|
|
46 |
virtual void MoveToEnd(TInt aPos)=0;
|
|
47 |
};
|
|
48 |
|
|
49 |
typedef TInt (*TInitFunction)(MDllList&);
|
|
50 |
typedef TInt (*TChkCFunction)();
|
|
51 |
typedef TInt (*TBlkIFunction)(TInt);
|
|
52 |
typedef TInt (*TGetGenFunction)();
|
|
53 |
typedef TInt (*TRBlkIFunction)(TInt, TInt);
|
|
54 |
typedef void (*TSetCloseLibFunction)(TInt);
|
|
55 |
|
|
56 |
#define TLS_INDEX 1
|
|
57 |
|
|
58 |
#define INIT_ORDINAL 1
|
|
59 |
#define CHECK_CONSTRUCTORS_ORDINAL 2
|
|
60 |
#define BLOCK_INC_ORDINAL 3
|
|
61 |
#define GENERATION_ORDINAL 4
|
|
62 |
#define REC_BLOCK_INC_ORDINAL 5
|
|
63 |
#define SET_CLOSE_LIB_ORDINAL 6
|
|
64 |
|
|
65 |
#endif
|