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