Build preferences.library with actual defs.h
[AROS-Contrib.git] / scalos / libraries / preferences / Preferences.h
bloba73a9f88a4360917dd1379a7c8df4932029f9aa6
1 // Preferences.h
2 // $Date$
3 // $Revision$
6 #ifndef PREFERENCES_H
7 #define PREFERENCES_H
9 #include <exec/types.h>
10 #include <exec/lists.h>
11 #include <exec/libraries.h>
13 #include <defs.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,
37 D0, ULONG, id,
38 D1, ULONG, tag,
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,
44 D0, ULONG, id,
45 D1, ULONG, tag,
46 A1, APTR, Struct,
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,
59 D0, ULONG, ID,
60 D1, ULONG, tag,
61 A6, struct PreferencesBase *, PreferencesBase, 11);
62 LIBFUNC_P7_PROTO(void, LIBSetEntry,
63 A0, APTR, PrefsHandle,
64 D0, ULONG, ID,
65 D1, ULONG, tag,
66 A1, const APTR, Struct,
67 D2, UWORD, StructSize,
68 D3, ULONG, Entry,
69 A6, struct PreferencesBase *, PreferencesBase, 12);
70 LIBFUNC_P7_PROTO(ULONG, LIBGetEntry,
71 A0, APTR, PrefsHandle,
72 D0, ULONG, ID,
73 D1, ULONG, tag,
74 A1, const APTR, Struct,
75 D2, UWORD, StructSize,
76 D3, ULONG, Entry,
77 A6, struct PreferencesBase *, PreferencesBase, 13);
78 LIBFUNC_P5_PROTO(ULONG, LIBRemEntry,
79 A0, APTR, PrefsHandle,
80 D0, ULONG, ID,
81 D1, ULONG, tag,
82 D2, ULONG, Entry,
83 A6, struct PreferencesBase *, PreferencesBase, 14);
85 //----------------------------------------------------------------------------
87 #endif /* PREFERENCES_H */