1 #include <exec/libraries.h>
4 /******************* $VER: xpkLib.h 1.0 (26.06.1998) ********************/
6 /* set XPKSUB_INCLUDEHEADER when startup code should be included at end of
9 /* Here the needed variables and strings are initialized. Do not change the
10 format of the IDString. Only add some additional information after the
11 second brake. An additional $VER: string is not needed!
14 #define VERSION 1 /* version of your library */
15 #define REVISION 0 /* revision of your library */
16 #define LIBNAME "xpk____.library"
17 #define IDSTRING "xpk____ 1.0 (26.06.1998)\r\n"
19 /************************************************************************/
21 /* Functions xInitCode and xExitCode give you the ability to do things on
22 opening and closing of library. These functions are called by init
23 routine or by Expunge. Init is the only funtion, that is allowed to set
24 a value for an global variable. The library base pointer is on stack!
25 If xInitCode returns not zero, the init function fails and thus the
26 library cannot be opened!
28 The xInitCode function can for example be used for processor type checks:
29 the <flag> place holder may be any of the following values:
30 CPU's: AFF_68010, AFF_68020, AFF_68030, AFF_68040
31 FPU's: AFF_68881, AFF_68882
32 NOTE: for better processors (e.g. AFF_68030) the lower bits are set also
33 (AFF_68020 and AFF_68010), so you only need to check one value!.
34 The flags for CPU and FPU can be used both with (AFF_CPU | AFF_FPU).
37 /* example init function, enable when 68020 is needed */
38 /* #define xInitCode(a) (!(a->AttnFlags & AFF_68020)) */
41 #define xInitCode(a) LibReserved()
44 /* Sometimes you do not need functions LIBXpksPackReset, LIBXpksPackFree or
45 XpksUnpackFree. In this case you can set these dummies here:
47 #define LIBXpksPackFree LibReserved
48 #define LIBXpksPackReset LibReserved
49 #define LIBXpksUnpackFree LibReserved
51 /* This is the library base structure. */
53 struct Library xsb_LibNode
;
55 struct ExecBase
* xsb_SysBase
;
58 #ifdef XPKSUB_INCLUDEHEADER
59 #include "xpk/xpkLibHeader.c"