9 #include <exec/types.h>
10 #include <exec/lists.h>
11 #include <exec/libraries.h>
15 #define LIB_VERSION 41
16 #define LIB_REVISION 2
18 extern char ALIGNED libName
[];
19 extern char ALIGNED libIdString
[];
21 extern struct ExecBase
*SysBase
;
23 //----------------------------------------------------------------------------
25 BOOL
PreferencesInit(struct PreferencesBase
*PreferencesBase
);
26 BOOL
PreferencesOpen(struct PreferencesBase
*PreferencesBase
);
27 void PreferencesCleanup(struct PreferencesBase
*PreferencesBase
);
29 LIBFUNC_P2_PROTO(APTR
, LIBAllocPrefsHandle
,
30 A0
, CONST_STRPTR
, Name
,
31 A6
, struct PreferencesBase
*, PreferencesBase
, 5);
32 LIBFUNC_P2_PROTO(void, LIBFreePrefsHandle
,
33 A0
, APTR
, PrefsHandle
,
34 A6
, struct PreferencesBase
*, PreferencesBase
, 6);
35 LIBFUNC_P6_PROTO(void, LIBSetPreferences
,
36 A0
, APTR
, PrefsHandle
,
39 A1
, const APTR
, Struct
,
40 D2
, UWORD
, StructSize
,
41 A6
, struct PreferencesBase
*, PreferencesBase
, 7);
42 LIBFUNC_P6_PROTO(ULONG
, LIBGetPreferences
,
43 A0
, APTR
, PrefsHandle
,
47 D2
, UWORD
, StructSize
,
48 A6
, struct PreferencesBase
*, PreferencesBase
, 8);
49 LIBFUNC_P3_PROTO(void, LIBReadPrefsHandle
,
50 A0
, APTR
, PrefsHandle
,
51 A1
, CONST_STRPTR
, Filename
,
52 A6
, struct PreferencesBase
*, PreferencesBase
, 9);
53 LIBFUNC_P3_PROTO(void, LIBWritePrefsHandle
,
54 A0
, APTR
, PrefsHandle
,
55 A1
, CONST_STRPTR
, Filename
,
56 A6
, struct PreferencesBase
*, PreferencesBase
, 10);
57 LIBFUNC_P4_PROTO(struct PrefsStruct
*, LIBFindPreferences
,
58 A0
, APTR
, PrefsHandle
,
61 A6
, struct PreferencesBase
*, PreferencesBase
, 11);
62 LIBFUNC_P7_PROTO(void, LIBSetEntry
,
63 A0
, APTR
, PrefsHandle
,
66 A1
, const APTR
, Struct
,
67 D2
, UWORD
, StructSize
,
69 A6
, struct PreferencesBase
*, PreferencesBase
, 12);
70 LIBFUNC_P7_PROTO(ULONG
, LIBGetEntry
,
71 A0
, APTR
, PrefsHandle
,
74 A1
, const APTR
, Struct
,
75 D2
, UWORD
, StructSize
,
77 A6
, struct PreferencesBase
*, PreferencesBase
, 13);
78 LIBFUNC_P5_PROTO(ULONG
, LIBRemEntry
,
79 A0
, APTR
, PrefsHandle
,
83 A6
, struct PreferencesBase
*, PreferencesBase
, 14);
85 //----------------------------------------------------------------------------
87 #endif /* PREFERENCES_H */