os/kernelhwsrv/kerneltest/f32test/loader/security/dlltree.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) 2000-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\gen\dlltree.h
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef __DLLTREE_H__
sl@0
    19
#define __DLLTREE_H__
sl@0
    20
#include <e32std.h>
sl@0
    21
sl@0
    22
//#define USESYSLIBS
sl@0
    23
sl@0
    24
sl@0
    25
#ifdef USESYSLIBS
sl@0
    26
_LIT(KDllfilename,"Z:\\System\\Libs\\DLLTS");
sl@0
    27
#if defined WIN32
sl@0
    28
_LIT(KNewDllName, "DLLTS");
sl@0
    29
#else
sl@0
    30
_LIT(KNewDllName, "C:\\System\\Libs\\DLLTS");
sl@0
    31
#endif
sl@0
    32
_LIT(KDllExt,".DLL");
sl@0
    33
sl@0
    34
_LIT(KExefilename,"Z:\\System\\Libs\\EXETS");
sl@0
    35
#if defined WIN32
sl@0
    36
_LIT(KNewExeName, "EXETS");
sl@0
    37
#else
sl@0
    38
_LIT(KNewExeName, "C:\\System\\Libs\\EXETS");
sl@0
    39
#endif
sl@0
    40
_LIT(KExeExt,".EXE");
sl@0
    41
#if defined WIN32
sl@0
    42
_LIT(KDll6,"DLLTS6.dll");
sl@0
    43
_LIT(KDll7,"DLLTS7.dll");
sl@0
    44
_LIT(KDll11,"DLLTS11.dll");
sl@0
    45
#else
sl@0
    46
_LIT(KDll6,"C:\\System\\Libs\\DLLTS6.dll");
sl@0
    47
_LIT(KDll7,"C:\\System\\Libs\\DLLTS7.dll");
sl@0
    48
_LIT(KDll11,"C:\\System\\Libs\\DLLTS11.dll");
sl@0
    49
#endif
sl@0
    50
_LIT(KSystemLibs,"C:\\System\\Libs\\");
sl@0
    51
_LIT(KAnyDirDll,"C:\\Anyoldname\\System\\Libs\\DLLTS");
sl@0
    52
_LIT(KAnyDirExe,"C:\\Anyoldname\\System\\Libs\\EXETS");
sl@0
    53
_LIT(KAnyDirShort,"C:\\Anyoldname\\");
sl@0
    54
_LIT(KJDllName,"N:\\System\\Libs\\DLLTS");
sl@0
    55
_LIT(KJExeName,"N:\\System\\Libs\\EXETS");
sl@0
    56
sl@0
    57
#else	//USESYSLIBS 
sl@0
    58
sl@0
    59
_LIT(KDllfilename,"Z:\\sys\\bin\\DLLTS");//this will need to change
sl@0
    60
#if defined WIN32
sl@0
    61
_LIT(KNewDllName, "DLLTS");
sl@0
    62
#else
sl@0
    63
_LIT(KNewDllName, "C:\\sys\\bin\\DLLTS");
sl@0
    64
#endif
sl@0
    65
_LIT(KDllExt,".DLL");
sl@0
    66
_LIT(KExefilename,"Z:\\sys\\bin\\EXETS");//this will need to change
sl@0
    67
#if defined WIN32
sl@0
    68
_LIT(KNewExeName, "EXETS");
sl@0
    69
#else
sl@0
    70
_LIT(KNewExeName, "C:\\sys\\bin\\EXETS");
sl@0
    71
#endif
sl@0
    72
_LIT(KExeExt,".EXE");
sl@0
    73
#if defined WIN32
sl@0
    74
_LIT(KDll6,"DLLTS6.dll");
sl@0
    75
_LIT(KDll7,"DLLTS7.dll");
sl@0
    76
_LIT(KDll11,"DLLTS11.dll");
sl@0
    77
#else
sl@0
    78
_LIT(KDll6,"C:\\sys\\bin\\DLLTS6.dll");
sl@0
    79
_LIT(KDll7,"C:\\sys\\bin\\DLLTS7.dll");
sl@0
    80
_LIT(KDll11,"C:\\sys\\bin\\DLLTS11.dll");
sl@0
    81
#endif
sl@0
    82
_LIT(KSystemLibs,"C:\\sys\\bin\\");
sl@0
    83
_LIT(KAnyDirDll,"C:\\Anyoldname\\sys\\bin\\DLLTS");
sl@0
    84
_LIT(KAnyDirExe,"C:\\Anyoldname\\sys\\bin\\EXETS");
sl@0
    85
_LIT(KAnyDirShort,"C:\\Anyoldname\\");
sl@0
    86
_LIT(KJDllName,"N:\\sys\\bin\\DLLTS");
sl@0
    87
_LIT(KJExeName,"N:\\sys\\bin\\EXETS");
sl@0
    88
_LIT(KJDllNameOnly,"DLLTS");
sl@0
    89
_LIT(KJExeNameOnly,"EXETS");
sl@0
    90
#endif
sl@0
    91
sl@0
    92
class MDllList;
sl@0
    93
sl@0
    94
#if defined(__DLLNUM0)
sl@0
    95
#define DLLNUM               0
sl@0
    96
#define INITFUNC             Init0
sl@0
    97
#define CHKCFUNC             ChkC0
sl@0
    98
#define BLKIFUNC             BlkI0
sl@0
    99
#define RBLKIFUNC            RBlkI0
sl@0
   100
#define CHKDEPS(r)           (\
sl@0
   101
	((r)=ChkC1())!=0 ||\
sl@0
   102
	((r)=ChkC2())!=0 ||\
sl@0
   103
	((r)=0)!=0 )
sl@0
   104
#define INITDEPS(r,l)        (\
sl@0
   105
	((r)=Init1(l))!=0 ||\
sl@0
   106
	((r)=Init2(l))!=0 ||\
sl@0
   107
	((r)=0)!=0 )
sl@0
   108
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   109
	(i)=RBlkI1(i,g);\
sl@0
   110
	(i)=RBlkI2(i,g);\
sl@0
   111
	}
sl@0
   112
#define __MODULE_EXPORT		EXPORT_C
sl@0
   113
#define __MODULE_IMPORT		IMPORT_C
sl@0
   114
extern "C" IMPORT_C TInt Init1(MDllList&);
sl@0
   115
extern "C" IMPORT_C TInt ChkC1();
sl@0
   116
extern "C" IMPORT_C TInt RBlkI1(TInt, TInt);
sl@0
   117
extern "C" IMPORT_C TInt Init2(MDllList&);
sl@0
   118
extern "C" IMPORT_C TInt ChkC2();
sl@0
   119
extern "C" IMPORT_C TInt RBlkI2(TInt, TInt);
sl@0
   120
sl@0
   121
sl@0
   122
#elif defined(__DLLNUM1)
sl@0
   123
#define DLLNUM               1
sl@0
   124
#define INITFUNC             Init1
sl@0
   125
#define CHKCFUNC             ChkC1
sl@0
   126
#define BLKIFUNC             BlkI1
sl@0
   127
#define RBLKIFUNC            RBlkI1
sl@0
   128
#define CHKDEPS(r)           (\
sl@0
   129
	((r)=0)!=0 )
sl@0
   130
#define INITDEPS(r,l)        (\
sl@0
   131
	((r)=0)!=0 )
sl@0
   132
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   133
	}
sl@0
   134
#define __MODULE_EXPORT		EXPORT_C
sl@0
   135
#define __MODULE_IMPORT		IMPORT_C
sl@0
   136
sl@0
   137
sl@0
   138
#elif defined(__DLLNUM2)
sl@0
   139
#define DLLNUM               2
sl@0
   140
#define INITFUNC             Init2
sl@0
   141
#define CHKCFUNC             ChkC2
sl@0
   142
#define BLKIFUNC             BlkI2
sl@0
   143
#define RBLKIFUNC            RBlkI2
sl@0
   144
#define CHKDEPS(r)           (\
sl@0
   145
	((r)=0)!=0 )
sl@0
   146
#define INITDEPS(r,l)        (\
sl@0
   147
	((r)=0)!=0 )
sl@0
   148
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   149
	}
sl@0
   150
#define __MODULE_EXPORT		EXPORT_C
sl@0
   151
#define __MODULE_IMPORT		IMPORT_C
sl@0
   152
sl@0
   153
sl@0
   154
#elif defined(__DLLNUM3)
sl@0
   155
#define DLLNUM               3
sl@0
   156
#define INITFUNC             Init3
sl@0
   157
#define CHKCFUNC             ChkC3
sl@0
   158
#define BLKIFUNC             BlkI3
sl@0
   159
#define RBLKIFUNC            RBlkI3
sl@0
   160
#define CHKDEPS(r)           (\
sl@0
   161
	((r)=ChkC4())!=0 ||\
sl@0
   162
	((r)=ChkC5())!=0 ||\
sl@0
   163
	((r)=0)!=0 )
sl@0
   164
#define INITDEPS(r,l)        (\
sl@0
   165
	((r)=Init4(l))!=0 ||\
sl@0
   166
	((r)=Init5(l))!=0 ||\
sl@0
   167
	((r)=0)!=0 )
sl@0
   168
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   169
	(i)=RBlkI4(i,g);\
sl@0
   170
	(i)=RBlkI5(i,g);\
sl@0
   171
	}
sl@0
   172
#define __MODULE_HAS_DATA
sl@0
   173
#define __MODULE_EXPORT		EXPORT_C
sl@0
   174
#define __MODULE_IMPORT		IMPORT_C
sl@0
   175
extern "C" IMPORT_C TInt Init4(MDllList&);
sl@0
   176
extern "C" IMPORT_C TInt ChkC4();
sl@0
   177
extern "C" IMPORT_C TInt RBlkI4(TInt, TInt);
sl@0
   178
extern "C" IMPORT_C TInt Init5(MDllList&);
sl@0
   179
extern "C" IMPORT_C TInt ChkC5();
sl@0
   180
extern "C" IMPORT_C TInt RBlkI5(TInt, TInt);
sl@0
   181
sl@0
   182
sl@0
   183
#elif defined(__DLLNUM4)
sl@0
   184
#define DLLNUM               4
sl@0
   185
#define INITFUNC             Init4
sl@0
   186
#define CHKCFUNC             ChkC4
sl@0
   187
#define BLKIFUNC             BlkI4
sl@0
   188
#define RBLKIFUNC            RBlkI4
sl@0
   189
#define CHKDEPS(r)           (\
sl@0
   190
	((r)=0)!=0 )
sl@0
   191
#define INITDEPS(r,l)        (\
sl@0
   192
	((r)=0)!=0 )
sl@0
   193
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   194
	}
sl@0
   195
#define __MODULE_HAS_DATA
sl@0
   196
#define __MODULE_EXPORT		EXPORT_C
sl@0
   197
#define __MODULE_IMPORT		IMPORT_C
sl@0
   198
sl@0
   199
sl@0
   200
#elif defined(__DLLNUM5)
sl@0
   201
#define DLLNUM               5
sl@0
   202
#define INITFUNC             Init5
sl@0
   203
#define CHKCFUNC             ChkC5
sl@0
   204
#define BLKIFUNC             BlkI5
sl@0
   205
#define RBLKIFUNC            RBlkI5
sl@0
   206
#define CHKDEPS(r)           (\
sl@0
   207
	((r)=0)!=0 )
sl@0
   208
#define INITDEPS(r,l)        (\
sl@0
   209
	((r)=0)!=0 )
sl@0
   210
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   211
	}
sl@0
   212
#define __MODULE_HAS_DATA
sl@0
   213
#define __MODULE_EXPORT		EXPORT_C
sl@0
   214
#define __MODULE_IMPORT		IMPORT_C
sl@0
   215
sl@0
   216
sl@0
   217
#elif defined(__DLLNUM6)
sl@0
   218
#define DLLNUM               6
sl@0
   219
#define INITFUNC             Init6
sl@0
   220
#define CHKCFUNC             ChkC6
sl@0
   221
#define BLKIFUNC             BlkI6
sl@0
   222
#define RBLKIFUNC            RBlkI6
sl@0
   223
#define CHKDEPS(r)           (\
sl@0
   224
	((r)=ChkC0())!=0 ||\
sl@0
   225
	((r)=ChkC3())!=0 ||\
sl@0
   226
	((r)=0)!=0 )
sl@0
   227
#define INITDEPS(r,l)        (\
sl@0
   228
	((r)=Init0(l))!=0 ||\
sl@0
   229
	((r)=Init3(l))!=0 ||\
sl@0
   230
	((r)=0)!=0 )
sl@0
   231
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   232
	(i)=RBlkI0(i,g);\
sl@0
   233
	(i)=RBlkI3(i,g);\
sl@0
   234
	}
sl@0
   235
#define __MODULE_EXPORT		EXPORT_C
sl@0
   236
#define __MODULE_IMPORT		IMPORT_C
sl@0
   237
extern "C" IMPORT_C TInt Init0(MDllList&);
sl@0
   238
extern "C" IMPORT_C TInt ChkC0();
sl@0
   239
extern "C" IMPORT_C TInt RBlkI0(TInt, TInt);
sl@0
   240
extern "C" IMPORT_C TInt Init3(MDllList&);
sl@0
   241
extern "C" IMPORT_C TInt ChkC3();
sl@0
   242
extern "C" IMPORT_C TInt RBlkI3(TInt, TInt);
sl@0
   243
sl@0
   244
sl@0
   245
#elif defined(__DLLNUM7)
sl@0
   246
#define DLLNUM               7
sl@0
   247
#define INITFUNC             Init7
sl@0
   248
#define CHKCFUNC             ChkC7
sl@0
   249
#define BLKIFUNC             BlkI7
sl@0
   250
#define RBLKIFUNC            RBlkI7
sl@0
   251
#define CHKDEPS(r)           (\
sl@0
   252
	((r)=ChkC8())!=0 ||\
sl@0
   253
	((r)=ChkC9())!=0 ||\
sl@0
   254
	((r)=0)!=0 )
sl@0
   255
#define INITDEPS(r,l)        (\
sl@0
   256
	((r)=Init8(l))!=0 ||\
sl@0
   257
	((r)=Init9(l))!=0 ||\
sl@0
   258
	((r)=0)!=0 )
sl@0
   259
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   260
	(i)=RBlkI8(i,g);\
sl@0
   261
	(i)=RBlkI9(i,g);\
sl@0
   262
	}
sl@0
   263
#define __MODULE_EXPORT		EXPORT_C
sl@0
   264
#define __MODULE_IMPORT		IMPORT_C
sl@0
   265
extern "C" IMPORT_C TInt Init8(MDllList&);
sl@0
   266
extern "C" IMPORT_C TInt ChkC8();
sl@0
   267
extern "C" IMPORT_C TInt RBlkI8(TInt, TInt);
sl@0
   268
extern "C" IMPORT_C TInt Init9(MDllList&);
sl@0
   269
extern "C" IMPORT_C TInt ChkC9();
sl@0
   270
extern "C" IMPORT_C TInt RBlkI9(TInt, TInt);
sl@0
   271
sl@0
   272
sl@0
   273
#elif defined(__DLLNUM8)
sl@0
   274
#define DLLNUM               8
sl@0
   275
#define INITFUNC             Init8
sl@0
   276
#define CHKCFUNC             ChkC8
sl@0
   277
#define BLKIFUNC             BlkI8
sl@0
   278
#define RBLKIFUNC            RBlkI8
sl@0
   279
#define CHKDEPS(r)           (\
sl@0
   280
	((r)=ChkC10())!=0 ||\
sl@0
   281
	((r)=0)!=0 )
sl@0
   282
#define INITDEPS(r,l)        (\
sl@0
   283
	((r)=Init10(l))!=0 ||\
sl@0
   284
	((r)=0)!=0 )
sl@0
   285
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   286
	(i)=RBlkI10(i,g);\
sl@0
   287
	}
sl@0
   288
#define __MODULE_EXPORT		EXPORT_C
sl@0
   289
#define __MODULE_IMPORT		IMPORT_C
sl@0
   290
extern "C" IMPORT_C TInt Init10(MDllList&);
sl@0
   291
extern "C" IMPORT_C TInt ChkC10();
sl@0
   292
extern "C" IMPORT_C TInt RBlkI10(TInt, TInt);
sl@0
   293
sl@0
   294
sl@0
   295
#elif defined(__DLLNUM9)
sl@0
   296
#define DLLNUM               9
sl@0
   297
#define INITFUNC             Init9
sl@0
   298
#define CHKCFUNC             ChkC9
sl@0
   299
#define BLKIFUNC             BlkI9
sl@0
   300
#define RBLKIFUNC            RBlkI9
sl@0
   301
#define CHKDEPS(r)           (\
sl@0
   302
	((r)=ChkC10())!=0 ||\
sl@0
   303
	((r)=0)!=0 )
sl@0
   304
#define INITDEPS(r,l)        (\
sl@0
   305
	((r)=Init10(l))!=0 ||\
sl@0
   306
	((r)=0)!=0 )
sl@0
   307
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   308
	(i)=RBlkI10(i,g);\
sl@0
   309
	}
sl@0
   310
#define __MODULE_EXPORT		EXPORT_C
sl@0
   311
#define __MODULE_IMPORT		IMPORT_C
sl@0
   312
extern "C" IMPORT_C TInt Init10(MDllList&);
sl@0
   313
extern "C" IMPORT_C TInt ChkC10();
sl@0
   314
extern "C" IMPORT_C TInt RBlkI10(TInt, TInt);
sl@0
   315
sl@0
   316
sl@0
   317
#elif defined(__DLLNUM10)
sl@0
   318
#define DLLNUM               10
sl@0
   319
#define INITFUNC             Init10
sl@0
   320
#define CHKCFUNC             ChkC10
sl@0
   321
#define BLKIFUNC             BlkI10
sl@0
   322
#define RBLKIFUNC            RBlkI10
sl@0
   323
#define CHKDEPS(r)           (\
sl@0
   324
	((r)=0)!=0 )
sl@0
   325
#define INITDEPS(r,l)        (\
sl@0
   326
	((r)=0)!=0 )
sl@0
   327
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   328
	}
sl@0
   329
#define __MODULE_EXPORT		EXPORT_C
sl@0
   330
#define __MODULE_IMPORT		IMPORT_C
sl@0
   331
sl@0
   332
sl@0
   333
sl@0
   334
sl@0
   335
#elif defined(__DLLNUM11)
sl@0
   336
#define DLLNUM               11
sl@0
   337
#define INITFUNC             Init11
sl@0
   338
#define CHKCFUNC             ChkC11
sl@0
   339
#define BLKIFUNC             BlkI11
sl@0
   340
#define RBLKIFUNC            RBlkI11
sl@0
   341
#define CHKDEPS(r)           (\
sl@0
   342
	((r)=ChkC12())!=0 ||\
sl@0
   343
	((r)=0)!=0 )
sl@0
   344
#define INITDEPS(r,l)        (\
sl@0
   345
	((r)=Init12(l))!=0 ||\
sl@0
   346
	((r)=0)!=0 )
sl@0
   347
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   348
	(i)=RBlkI12(i,g);\
sl@0
   349
	}
sl@0
   350
#define __DLL_IN_CYCLE
sl@0
   351
#define __MODULE_EXPORT		EXPORT_C
sl@0
   352
#define __MODULE_IMPORT		IMPORT_C
sl@0
   353
extern "C" IMPORT_C TInt Init12(MDllList&);
sl@0
   354
extern "C" IMPORT_C TInt ChkC12();
sl@0
   355
extern "C" IMPORT_C TInt RBlkI12(TInt, TInt);
sl@0
   356
sl@0
   357
sl@0
   358
#elif defined(__DLLNUM12)
sl@0
   359
#define DLLNUM               12
sl@0
   360
#define INITFUNC             Init12
sl@0
   361
#define CHKCFUNC             ChkC12
sl@0
   362
#define BLKIFUNC             BlkI12
sl@0
   363
#define RBLKIFUNC            RBlkI12
sl@0
   364
#define CHKDEPS(r)           (\
sl@0
   365
	((r)=ChkC13())!=0 ||\
sl@0
   366
	((r)=ChkC7())!=0 ||\
sl@0
   367
	((r)=0)!=0 )
sl@0
   368
#define INITDEPS(r,l)        (\
sl@0
   369
	((r)=Init13(l))!=0 ||\
sl@0
   370
	((r)=Init7(l))!=0 ||\
sl@0
   371
	((r)=0)!=0 )
sl@0
   372
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   373
	(i)=RBlkI13(i,g);\
sl@0
   374
	(i)=RBlkI7(i,g);\
sl@0
   375
	}
sl@0
   376
#define __DLL_IN_CYCLE
sl@0
   377
#define __MODULE_EXPORT		EXPORT_C
sl@0
   378
#define __MODULE_IMPORT		IMPORT_C
sl@0
   379
extern "C" IMPORT_C TInt Init13(MDllList&);
sl@0
   380
extern "C" IMPORT_C TInt ChkC13();
sl@0
   381
extern "C" IMPORT_C TInt RBlkI13(TInt, TInt);
sl@0
   382
extern "C" IMPORT_C TInt Init7(MDllList&);
sl@0
   383
extern "C" IMPORT_C TInt ChkC7();
sl@0
   384
extern "C" IMPORT_C TInt RBlkI7(TInt, TInt);
sl@0
   385
sl@0
   386
sl@0
   387
#elif defined(__DLLNUM13)
sl@0
   388
#define DLLNUM               13
sl@0
   389
#define INITFUNC             Init13
sl@0
   390
#define CHKCFUNC             ChkC13
sl@0
   391
#define BLKIFUNC             BlkI13
sl@0
   392
#define RBLKIFUNC            RBlkI13
sl@0
   393
#define CHKDEPS(r)           (\
sl@0
   394
	((r)=ChkC11())!=0 ||\
sl@0
   395
	((r)=0)!=0 )
sl@0
   396
#define INITDEPS(r,l)        (\
sl@0
   397
	((r)=Init11(l))!=0 ||\
sl@0
   398
	((r)=0)!=0 )
sl@0
   399
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   400
	(i)=RBlkI11(i,g);\
sl@0
   401
	}
sl@0
   402
#define __DLL_IN_CYCLE
sl@0
   403
#define __MODULE_EXPORT		EXPORT_C
sl@0
   404
#define __MODULE_IMPORT		IMPORT_C
sl@0
   405
extern "C" IMPORT_C TInt Init11(MDllList&);
sl@0
   406
extern "C" IMPORT_C TInt ChkC11();
sl@0
   407
extern "C" IMPORT_C TInt RBlkI11(TInt, TInt);
sl@0
   408
sl@0
   409
sl@0
   410
#elif defined(__DLLNUM14)
sl@0
   411
#define DLLNUM               14
sl@0
   412
#define EXENUM               14
sl@0
   413
_LIT(KServerName, "ExeA");
sl@0
   414
#define INITFUNC             Init14
sl@0
   415
#define CHKCFUNC             ChkC14
sl@0
   416
#define BLKIFUNC             BlkI14
sl@0
   417
#define RBLKIFUNC            RBlkI14			//need to sort out the rest of this dll
sl@0
   418
#define CHKDEPS(r)           (\
sl@0
   419
	((r)=ChkC6())!=0 ||\
sl@0
   420
//	((r)=0)!=0 )
sl@0
   421
#define INITDEPS(r,l)        (\
sl@0
   422
	((r)=Init6(l))!=0 ||\
sl@0
   423
	((r)=0)!=0 )
sl@0
   424
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   425
	(i)=RBlkI6(i,g);\
sl@0
   426
	}
sl@0
   427
#define __MODULE_EXPORT		EXPORT_C
sl@0
   428
#define __MODULE_IMPORT		IMPORT_C
sl@0
   429
extern "C" IMPORT_C TInt Init6(MDllList&);
sl@0
   430
extern "C" IMPORT_C TInt ChkC6();
sl@0
   431
extern "C" IMPORT_C TInt RBlkI6(TInt, TInt);
sl@0
   432
sl@0
   433
sl@0
   434
#elif defined(__DLLNUM15)
sl@0
   435
#define DLLNUM               15
sl@0
   436
#define EXENUM               15
sl@0
   437
_LIT(KServerName, "ExeB");
sl@0
   438
#define INITFUNC             Init15
sl@0
   439
#define CHKCFUNC             ChkC15
sl@0
   440
#define BLKIFUNC             BlkI15
sl@0
   441
#define RBLKIFUNC            RBlkI15			//need to sort out the rest of this dll
sl@0
   442
#define CHKDEPS(r)           (\
sl@0
   443
	((r)=ChkC11())!=0 ||\
sl@0
   444
	((r)=0)!=0 )
sl@0
   445
#define INITDEPS(r,l)        (\
sl@0
   446
	((r)=Init11(l))!=0 ||\
sl@0
   447
	((r)=0)!=0 )
sl@0
   448
#define RBLKIFUNC_DEPS(i,g)  {\
sl@0
   449
	(i)=RBlkI11(i,g);\
sl@0
   450
	}
sl@0
   451
#define __MODULE_EXPORT
sl@0
   452
#define __MODULE_IMPORT
sl@0
   453
extern "C" IMPORT_C TInt Init11(MDllList&);
sl@0
   454
extern "C" IMPORT_C TInt ChkC11();
sl@0
   455
extern "C" IMPORT_C TInt RBlkI11(TInt, TInt);
sl@0
   456
#endif
sl@0
   457
sl@0
   458
const TInt KNumModules=16;
sl@0
   459
sl@0
   460
//sorted up to here
sl@0
   461
sl@0
   462
sl@0
   463
sl@0
   464
static const TText* const ModuleName[KNumModules] =
sl@0
   465
	{
sl@0
   466
	(const TText*)L"STree0",					/*0*/
sl@0
   467
	(const TText*)L"STree1",					/*1*/
sl@0
   468
	(const TText*)L"STree2",					/*2*/
sl@0
   469
	(const TText*)L"SDTree3",					/*3*/
sl@0
   470
	(const TText*)L"SDTree4",					/*4*/
sl@0
   471
	(const TText*)L"SDTree5",					/*5*/
sl@0
   472
	(const TText*)L"SPDTree6",					/*6*/
sl@0
   473
	(const TText*)L"SLat7",						/*7*/
sl@0
   474
	(const TText*)L"SLat8",						/*8*/
sl@0
   475
	(const TText*)L"SLat9",						/*9*/
sl@0
   476
	(const TText*)L"SLat10",					/*10*/
sl@0
   477
	(const TText*)L"SCycS11",					/*11*/
sl@0
   478
	(const TText*)L"SCycS12",					/*12*/
sl@0
   479
	(const TText*)L"SCycS13",					/*13*/
sl@0
   480
	(const TText*)L"SExe14",					/*14*/
sl@0
   481
	(const TText*)L"SExe15"						/*15*/
sl@0
   482
	};
sl@0
   483
sl@0
   484
#define MODULE_NAME(n)	TPtrC(ModuleName[n])
sl@0
   485
sl@0
   486
static const TText* const ModuleFileName[KNumModules] =
sl@0
   487
	{
sl@0
   488
	(const TText*)L"DLLTS0.DLL",
sl@0
   489
	(const TText*)L"DLLTS1.DLL",
sl@0
   490
	(const TText*)L"DLLTS2.DLL",
sl@0
   491
	(const TText*)L"DLLTS3.DLL",
sl@0
   492
	(const TText*)L"DLLTS4.DLL",
sl@0
   493
	(const TText*)L"DLLTS5.DLL",
sl@0
   494
	(const TText*)L"DLLTS6.DLL",
sl@0
   495
	(const TText*)L"DLLTS7.DLL",
sl@0
   496
	(const TText*)L"DLLTS8.DLL",
sl@0
   497
	(const TText*)L"DLLTS9.DLL",
sl@0
   498
	(const TText*)L"DLLTS10.DLL",
sl@0
   499
	(const TText*)L"DLLTS11.DLL",
sl@0
   500
	(const TText*)L"DLLTS12.DLL",
sl@0
   501
	(const TText*)L"DLLTS13.DLL",
sl@0
   502
	(const TText*)L"EXETS14.EXE",
sl@0
   503
	(const TText*)L"EXETS15.EXE"
sl@0
   504
	};
sl@0
   505
sl@0
   506
#define MODULE_FILENAME(n)	TPtrC(ModuleFileName[n])
sl@0
   507
sl@0
   508
static const TInt Module0Deps[] =
sl@0
   509
	{2,1,2};
sl@0
   510
static const TInt Module1Deps[] =
sl@0
   511
	{0};
sl@0
   512
static const TInt Module2Deps[] =
sl@0
   513
	{0};
sl@0
   514
static const TInt Module3Deps[] =
sl@0
   515
	{2,4,5};
sl@0
   516
static const TInt Module4Deps[] =
sl@0
   517
	{0};
sl@0
   518
static const TInt Module5Deps[] =
sl@0
   519
	{0};
sl@0
   520
static const TInt Module6Deps[] =
sl@0
   521
	{6,1,2,0,4,5,3};
sl@0
   522
static const TInt Module7Deps[] =
sl@0
   523
	{3,10,8,9};
sl@0
   524
static const TInt Module8Deps[] =
sl@0
   525
	{1,10};
sl@0
   526
static const TInt Module9Deps[] =
sl@0
   527
	{1,10};
sl@0
   528
static const TInt Module10Deps[] =
sl@0
   529
	{0};
sl@0
   530
static const TInt Module11Deps[] =
sl@0
   531
	{7,11,13,10,8,9,7,12};
sl@0
   532
sl@0
   533
static const TInt Module12Deps[] =
sl@0
   534
	{7,10,8,9,7,12,11,13};
sl@0
   535
sl@0
   536
static const TInt Module13Deps[] =
sl@0
   537
	{7,13,10,8,9,7,12,11};
sl@0
   538
sl@0
   539
static const TInt Module14Deps[] =
sl@0
   540
	{7,1,2,0,4,5,3,6};
sl@0
   541
sl@0
   542
static const TInt Module15Deps[] =
sl@0
   543
	{8,11,13,10,8,9,7,12,11};
sl@0
   544
sl@0
   545
static const TInt* const ModuleDependencies[KNumModules] =
sl@0
   546
	{
sl@0
   547
	Module0Deps,
sl@0
   548
	Module1Deps,
sl@0
   549
	Module2Deps,
sl@0
   550
	Module3Deps,
sl@0
   551
	Module4Deps,
sl@0
   552
	Module5Deps,
sl@0
   553
	Module6Deps,
sl@0
   554
	Module7Deps,
sl@0
   555
	Module8Deps,
sl@0
   556
	Module9Deps,
sl@0
   557
	Module10Deps,
sl@0
   558
	Module11Deps,
sl@0
   559
	Module12Deps,
sl@0
   560
	Module13Deps,
sl@0
   561
	Module14Deps,
sl@0
   562
	Module15Deps
sl@0
   563
	};
sl@0
   564
sl@0
   565
const TInt KModuleFlagExe=0x01;
sl@0
   566
const TInt KModuleFlagFixed=0x02;
sl@0
   567
const TInt KModuleFlagData=0x04;
sl@0
   568
const TInt KModuleFlagXIP=0x08;
sl@0
   569
const TInt KModuleFlagDllInCycle=0x10;
sl@0
   570
const TInt KModuleFlagDataInTree=0x20;
sl@0
   571
const TInt KModuleFlagXIPDataInTree=0x40;
sl@0
   572
const TInt KModuleFlagExports=0x80;
sl@0
   573
sl@0
   574
static const TInt ModuleFlags[KNumModules] =
sl@0
   575
	{
sl@0
   576
	0x80,		/*0*/
sl@0
   577
	0x80,		/*1*/
sl@0
   578
	0x80,		/*2*/
sl@0
   579
	0xa4,		/*3*/
sl@0
   580
	0xa4,		/*4*/
sl@0
   581
	0xa4,		/*5*/
sl@0
   582
	0xa0,		/*6*/
sl@0
   583
	0x80,		/*7*/
sl@0
   584
	0x80,		/*8*/
sl@0
   585
	0x80,		/*9*/
sl@0
   586
	0x80,		/*10*/
sl@0
   587
	0x90,		/*11*/
sl@0
   588
	0x90,		/*12*/
sl@0
   589
	0x90,		/*13*/
sl@0
   590
	0xeb,		/*14*/
sl@0
   591
	0x61		/*15*/
sl@0
   592
	};
sl@0
   593
sl@0
   594
static const TInt Module0RBlkIParams[2] = { 0, 0 };
sl@0
   595
static const TInt Module1RBlkIParams[2] = { 0, 0 };
sl@0
   596
static const TInt Module2RBlkIParams[2] = { 0, 0 };
sl@0
   597
static const TInt Module3RBlkIParams[2] = { 3, 34 };
sl@0
   598
static const TInt Module4RBlkIParams[2] = { 1, 12 };
sl@0
   599
static const TInt Module5RBlkIParams[2] = { 1, 13 };
sl@0
   600
static const TInt Module6RBlkIParams[2] = { 0, 0 };
sl@0
   601
static const TInt Module7RBlkIParams[2] = { 0, 0 };
sl@0
   602
static const TInt Module8RBlkIParams[2] = { 0, 0 };
sl@0
   603
static const TInt Module9RBlkIParams[2] = { 0, 0 };
sl@0
   604
static const TInt Module10RBlkIParams[2] = { 0, 0 };
sl@0
   605
static const TInt Module11RBlkIParams[2] = { 0, 0 };
sl@0
   606
static const TInt Module12RBlkIParams[2] = { 0, 0 };
sl@0
   607
static const TInt Module13RBlkIParams[2] = { 0, 0 };
sl@0
   608
static const TInt Module14RBlkIParams[2] = { 0, 0 };
sl@0
   609
static const TInt Module15RBlkIParams[2] = { 0, 0 };
sl@0
   610
sl@0
   611
static const TInt* const ModuleRBlkIParams[KNumModules] =
sl@0
   612
	{
sl@0
   613
	Module0RBlkIParams,
sl@0
   614
	Module1RBlkIParams,
sl@0
   615
	Module2RBlkIParams,
sl@0
   616
	Module3RBlkIParams,
sl@0
   617
	Module4RBlkIParams,
sl@0
   618
	Module5RBlkIParams,
sl@0
   619
	Module6RBlkIParams,
sl@0
   620
	Module7RBlkIParams,
sl@0
   621
	Module8RBlkIParams,
sl@0
   622
	Module9RBlkIParams,
sl@0
   623
	Module10RBlkIParams,
sl@0
   624
	Module11RBlkIParams,
sl@0
   625
	Module12RBlkIParams,
sl@0
   626
	Module13RBlkIParams,
sl@0
   627
	Module14RBlkIParams,
sl@0
   628
	Module15RBlkIParams
sl@0
   629
	};
sl@0
   630
sl@0
   631
static const TInt Module0ExeInfo[2] = { -1, -1 };
sl@0
   632
static const TInt Module1ExeInfo[2] = { -1, -1 };
sl@0
   633
static const TInt Module2ExeInfo[2] = { -1, -1 };
sl@0
   634
static const TInt Module3ExeInfo[2] = { -1, -1 };
sl@0
   635
static const TInt Module4ExeInfo[2] = { -1, -1 };
sl@0
   636
static const TInt Module5ExeInfo[2] = { -1, -1 };
sl@0
   637
static const TInt Module6ExeInfo[2] = { -1, -1 };
sl@0
   638
static const TInt Module7ExeInfo[2] = { -1, -1 };
sl@0
   639
static const TInt Module8ExeInfo[2] = { -1, -1 };
sl@0
   640
static const TInt Module9ExeInfo[2] = { -1, -1 };
sl@0
   641
static const TInt Module10ExeInfo[2] = { -1, -1 };
sl@0
   642
static const TInt Module11ExeInfo[2] = { -1, -1 };
sl@0
   643
static const TInt Module12ExeInfo[2] = { -1, -1 };
sl@0
   644
static const TInt Module13ExeInfo[2] = { -1, -1 };
sl@0
   645
static const TInt Module14ExeInfo[2] = { 14, 14 };
sl@0
   646
static const TInt Module15ExeInfo[2] = { 15, 15 };
sl@0
   647
sl@0
   648
sl@0
   649
static const TInt* const ModuleExeInfo[KNumModules] =
sl@0
   650
	{
sl@0
   651
	Module0ExeInfo,
sl@0
   652
	Module1ExeInfo,
sl@0
   653
	Module2ExeInfo,
sl@0
   654
	Module3ExeInfo,
sl@0
   655
	Module4ExeInfo,
sl@0
   656
	Module5ExeInfo,
sl@0
   657
	Module6ExeInfo,
sl@0
   658
	Module7ExeInfo,
sl@0
   659
	Module8ExeInfo,
sl@0
   660
	Module9ExeInfo,
sl@0
   661
	Module10ExeInfo,
sl@0
   662
	Module11ExeInfo,
sl@0
   663
	Module12ExeInfo,
sl@0
   664
	Module13ExeInfo,
sl@0
   665
	Module14ExeInfo,
sl@0
   666
	Module15ExeInfo
sl@0
   667
	};
sl@0
   668
sl@0
   669
sl@0
   670
const TInt	KTestCases = 10;
sl@0
   671
sl@0
   672
//numbers 0 to 6 are for 14 and 7 to 13 are for 15
sl@0
   673
sl@0
   674
//													0	 1	  2	   3	 4 	  5     6    7     8    9
sl@0
   675
static const TUint32 Module0Caps[KTestCases] =	{0x0, 0xF, 0x7, 0x6,  0x7, 0x7,  0x7, 0x7,  0x7, 0x7};
sl@0
   676
static const TUint32 Module1Caps[KTestCases] =	{0x0, 0xF, 0xF, 0xF,  0xE, 0xF,  0xF, 0xF,  0xF, 0xF};
sl@0
   677
sl@0
   678
static const TUint32 Module2Caps[KTestCases] =	{0x0, 0xF, 0xF, 0xF,  0xF, 0xE,  0xF, 0xF,  0xF, 0xF};
sl@0
   679
static const TUint32 Module3Caps[KTestCases] =	{0x0, 0xF, 0x7, 0x7,  0x7, 0x7,  0x6, 0x7,  0x7, 0x7};
sl@0
   680
sl@0
   681
static const TUint32 Module4Caps[KTestCases] =	{0x0, 0xF, 0xF, 0xF,  0xF, 0xF,  0xF, 0xE,  0xF, 0xF};
sl@0
   682
static const TUint32 Module5Caps[KTestCases] =	{0x0, 0xF, 0xF, 0xF,  0xF, 0xF,  0xF, 0xF,  0xE, 0xF};
sl@0
   683
sl@0
   684
static const TUint32 Module6Caps[KTestCases] =	{0x0, 0xF, 0x3, 0x3,  0x3, 0x3,  0x3, 0x3,  0x3, 0x2};
sl@0
   685
static const TUint32 Module7Caps[KTestCases] =	{0x0, 0xF, 0x7, 0x6, 0x7,  0x7, 0x7,  0x7, 0x7,  0x7};
sl@0
   686
sl@0
   687
static const TUint32 Module8Caps[KTestCases] =	{0x0, 0xF, 0xF, 0xF, 0xE,  0xF, 0xF,  0xF, 0xF,  0xF};
sl@0
   688
static const TUint32 Module9Caps[KTestCases] =	{0x0, 0xF, 0xF, 0xF, 0xF,  0xE, 0xF,  0xF, 0xF,  0xF};
sl@0
   689
sl@0
   690
static const TUint32 Module10Caps[KTestCases] =	{0x0, 0xF, 0x1F,0x1F,0x1F, 0x1F,0x1E, 0x1F,0x1F, 0x1F};
sl@0
   691
static const TUint32 Module11Caps[KTestCases] =	{0x0, 0xF, 0x3, 0x3, 0x3,  0x3, 0x3,  0x2, 0x3,  0x3};
sl@0
   692
sl@0
   693
static const TUint32 Module12Caps[KTestCases] =	{0x0, 0xF, 0x3, 0x3, 0x3,  0x3, 0x3,  0x3, 0x2,  0x3};
sl@0
   694
static const TUint32 Module13Caps[KTestCases] =	{0x0, 0xF, 0x3, 0x3, 0x3,  0x3, 0x3,  0x3, 0x3,  0x2};
sl@0
   695
sl@0
   696
static const TUint32 Module14Caps[KTestCases] =	{0x0, 0xF, 0x1, 0x1, 0x1,  0x1, 0x1,  0x1, 0x1,  0x1};	//exe A
sl@0
   697
static const TUint32 Module15Caps[KTestCases] =	{0x0, 0xF, 0x1, 0x1, 0x1,  0x1, 0x1,  0x1, 0x1,  0x1};	//exe B
sl@0
   698
sl@0
   699
/* These go back in when the capability check become mandatory
sl@0
   700
static const TInt ModuleResultsA[KTestCases] = 
sl@0
   701
	{
sl@0
   702
	KErrNone,				//all equal		0
sl@0
   703
	KErrNone,				//all equal		1
sl@0
   704
	KErrNone,				//asscending	2
sl@0
   705
	KErrPermissionDenied,	//asscending	3
sl@0
   706
	KErrPermissionDenied,	//asscending	4
sl@0
   707
	KErrPermissionDenied,	//asscending	5
sl@0
   708
	KErrPermissionDenied,	//asscending	6
sl@0
   709
	KErrPermissionDenied,	//asscending	7
sl@0
   710
	KErrPermissionDenied,	//asscending	8
sl@0
   711
	KErrPermissionDenied	//asscending	9
sl@0
   712
	};
sl@0
   713
sl@0
   714
static const TInt ModuleResultsB[KTestCases] = 
sl@0
   715
	{
sl@0
   716
	KErrPermissionDenied,	//all equal		0
sl@0
   717
	KErrNone,				//all equal		1
sl@0
   718
	KErrNone,				//asscending	2
sl@0
   719
	KErrPermissionDenied,	//asscending	3
sl@0
   720
	KErrPermissionDenied,	//asscending	4
sl@0
   721
	KErrPermissionDenied,	//asscending	5
sl@0
   722
	KErrPermissionDenied,	//asscending	6
sl@0
   723
	KErrPermissionDenied,	//asscending	7
sl@0
   724
	KErrPermissionDenied,	//asscending	8
sl@0
   725
	KErrPermissionDenied	//asscending	9
sl@0
   726
	};
sl@0
   727
sl@0
   728
static const TInt ModuleResultsC[KTestCases] = 
sl@0
   729
	{
sl@0
   730
	KErrPermissionDenied,	//all equal		0
sl@0
   731
	KErrNone,				//all equal		1
sl@0
   732
	KErrNone,				//asscending	2
sl@0
   733
	KErrPermissionDenied,	//asscending	3
sl@0
   734
	KErrPermissionDenied,	//asscending	4
sl@0
   735
	KErrPermissionDenied,	//asscending	5
sl@0
   736
	KErrPermissionDenied,	//asscending	6
sl@0
   737
	KErrNone,				//asscending	7
sl@0
   738
	KErrNone,				//asscending	8
sl@0
   739
	KErrNone				//asscending	9
sl@0
   740
	};
sl@0
   741
*/
sl@0
   742
sl@0
   743
sl@0
   744
static const TInt ModuleResultsA[KTestCases] = 
sl@0
   745
	{
sl@0
   746
	KErrNone,				//all equal		0
sl@0
   747
	KErrNone,				//all equal		1
sl@0
   748
	KErrNone,				//asscending	2
sl@0
   749
	KErrNone,	//asscending	3
sl@0
   750
	KErrNone,	//asscending	4
sl@0
   751
	KErrNone,	//asscending	5
sl@0
   752
	KErrNone,	//asscending	6
sl@0
   753
	KErrNone,	//asscending	7
sl@0
   754
	KErrNone,	//asscending	8
sl@0
   755
	KErrNone	//asscending	9
sl@0
   756
	};
sl@0
   757
sl@0
   758
static const TInt ModuleResultsB[KTestCases] = 
sl@0
   759
	{
sl@0
   760
	KErrNone,	//all equal		0
sl@0
   761
	KErrNone,	//all equal		1
sl@0
   762
	KErrNone,	//asscending	2
sl@0
   763
	KErrNone,	//asscending	3
sl@0
   764
	KErrNone,	//asscending	4
sl@0
   765
	KErrNone,	//asscending	5
sl@0
   766
	KErrNone,	//asscending	6
sl@0
   767
	KErrNone,	//asscending	7
sl@0
   768
	KErrNone,	//asscending	8
sl@0
   769
	KErrNone	//asscending	9
sl@0
   770
	};
sl@0
   771
sl@0
   772
static const TInt ModuleResultsC[KTestCases] = 
sl@0
   773
	{
sl@0
   774
	KErrNone,	//all equal		0
sl@0
   775
	KErrNone,	//all equal		1
sl@0
   776
	KErrNone,	//asscending	2
sl@0
   777
	KErrNone,	//asscending	3
sl@0
   778
	KErrNone,	//asscending	4
sl@0
   779
	KErrNone,	//asscending	5
sl@0
   780
	KErrNone,	//asscending	6
sl@0
   781
	KErrNone,	//asscending	7
sl@0
   782
	KErrNone,	//asscending	8
sl@0
   783
	KErrNone	//asscending	9
sl@0
   784
	};
sl@0
   785
sl@0
   786
static const TUint32* const ModuleCaps[KNumModules] =
sl@0
   787
	{
sl@0
   788
	Module0Caps,
sl@0
   789
	Module1Caps,
sl@0
   790
	Module2Caps,
sl@0
   791
	Module3Caps,
sl@0
   792
	Module4Caps,
sl@0
   793
	Module5Caps,
sl@0
   794
	Module6Caps,
sl@0
   795
	Module7Caps,
sl@0
   796
	Module8Caps,
sl@0
   797
	Module9Caps,
sl@0
   798
	Module10Caps,
sl@0
   799
	Module11Caps,
sl@0
   800
	Module12Caps,
sl@0
   801
	Module13Caps,
sl@0
   802
	Module14Caps,
sl@0
   803
	Module15Caps
sl@0
   804
	};
sl@0
   805
sl@0
   806
#endif