os/kernelhwsrv/kerneltest/f32test/loader/security/dlltifc.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// f32test\loader\dlltifc.h
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef __DLLTIFC_H__
sl@0
    19
#define __DLLTIFC_H__
sl@0
    20
#include <e32base.h>
sl@0
    21
sl@0
    22
#define DLLNUMOFFSET	43
sl@0
    23
#define INC_BLOCK_SZ	1024
sl@0
    24
sl@0
    25
inline TInt BlkIValue(TInt aDllNum, TInt aIn)
sl@0
    26
	{return (aDllNum+DLLNUMOFFSET)*INC_BLOCK_SZ+aIn;}
sl@0
    27
sl@0
    28
#ifndef TMODULEHANDLE_DEFINED
sl@0
    29
#define TMODULEHANDLE_DEFINED
sl@0
    30
class TModuleHandle_dummy_class;
sl@0
    31
typedef TModuleHandle_dummy_class* TModuleHandle;
sl@0
    32
#endif
sl@0
    33
sl@0
    34
struct SDllInfo
sl@0
    35
	{
sl@0
    36
	TInt iDllNum;
sl@0
    37
	TInt iEntryPointAddress;	// entry point address
sl@0
    38
	TModuleHandle iModuleHandle;
sl@0
    39
	};
sl@0
    40
sl@0
    41
class MDllList
sl@0
    42
	{
sl@0
    43
public:
sl@0
    44
	virtual TBool IsPresent(const SDllInfo& aInfo)=0;
sl@0
    45
	virtual TInt Add(const SDllInfo& aInfo)=0;
sl@0
    46
	virtual void MoveToEnd(TInt aPos)=0;
sl@0
    47
	};
sl@0
    48
sl@0
    49
typedef TInt (*TInitFunction)(MDllList&);
sl@0
    50
typedef TInt (*TChkCFunction)();
sl@0
    51
typedef TInt (*TBlkIFunction)(TInt);
sl@0
    52
typedef TInt (*TGetGenFunction)();
sl@0
    53
typedef TInt (*TRBlkIFunction)(TInt, TInt);
sl@0
    54
typedef void (*TSetCloseLibFunction)(TInt);
sl@0
    55
sl@0
    56
#define TLS_INDEX						1
sl@0
    57
sl@0
    58
#define INIT_ORDINAL					1
sl@0
    59
#define	CHECK_CONSTRUCTORS_ORDINAL		2
sl@0
    60
#define BLOCK_INC_ORDINAL				3
sl@0
    61
#define GENERATION_ORDINAL				4
sl@0
    62
#define REC_BLOCK_INC_ORDINAL			5
sl@0
    63
#define SET_CLOSE_LIB_ORDINAL			6
sl@0
    64
sl@0
    65
#endif