Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / include / inline / preferences.h
bloba9809d82a21197237795e75d7f49a2ede399e336
1 #ifndef _INLINE_PREFERENCES_H
2 #define _INLINE_PREFERENCES_H
4 #ifndef CLIB_PREFERENCES_PROTOS_H
5 #define CLIB_PREFERENCES_PROTOS_H
6 #endif
8 #ifndef __INLINE_MACROS_H
9 #include <inline/macros.h>
10 #endif
12 #ifndef EXEC_TYPES_H
13 #include <exec/types.h>
14 #endif
15 #ifndef SCALOS_PREFERENCES_H
16 #include <scalos/preferences.h>
17 #endif
19 #ifndef PREFERENCES_BASE_NAME
20 #define PREFERENCES_BASE_NAME PreferencesBase
21 #endif
23 #define AllocPrefsHandle(name) \
24 LP1(0x1e, APTR, AllocPrefsHandle, CONST_STRPTR, name, a0, \
25 , PREFERENCES_BASE_NAME)
27 #define FreePrefsHandle(prefsHandle) \
28 LP1NR(0x24, FreePrefsHandle, APTR, prefsHandle, a0, \
29 , PREFERENCES_BASE_NAME)
31 #define SetPreferences(prefsHandle, iD, prefsTag, a1arg, struct_Size) \
32 LP5NR(0x2a, SetPreferences, APTR, prefsHandle, a0, ULONG, iD, d0, ULONG, prefsTag, d1, CONST APTR, a1arg, a1, ULONG, struct_Size, d2, \
33 , PREFERENCES_BASE_NAME)
35 #define GetPreferences(prefsHandle, iD, prefsTag, a1arg, struct_Size) \
36 LP5(0x30, ULONG, GetPreferences, APTR, prefsHandle, a0, ULONG, iD, d0, ULONG, prefsTag, d1, APTR, a1arg, a1, ULONG, struct_Size, d2, \
37 , PREFERENCES_BASE_NAME)
39 #define ReadPrefsHandle(prefsHandle, filename) \
40 LP2NR(0x36, ReadPrefsHandle, APTR, prefsHandle, a0, CONST_STRPTR, filename, a1, \
41 , PREFERENCES_BASE_NAME)
43 #define WritePrefsHandle(prefsHandle, filename) \
44 LP2NR(0x3c, WritePrefsHandle, APTR, prefsHandle, a0, CONST_STRPTR, filename, a1, \
45 , PREFERENCES_BASE_NAME)
47 #define FindPreferences(prefsHandle, iD, prefsTag) \
48 LP3(0x42, struct PrefsStruct *, FindPreferences, APTR, prefsHandle, a0, ULONG, iD, d0, ULONG, prefsTag, d1, \
49 , PREFERENCES_BASE_NAME)
51 #define SetEntry(prefsHandle, iD, prefsTag, a1arg, struct_Size, entry) \
52 LP6NR(0x48, SetEntry, APTR, prefsHandle, a0, ULONG, iD, d0, ULONG, prefsTag, d1, CONST APTR, a1arg, a1, ULONG, struct_Size, d2, ULONG, entry, d3, \
53 , PREFERENCES_BASE_NAME)
55 #define GetEntry(prefsHandle, iD, prefsTag, a1arg, struct_Size, entry) \
56 LP6(0x4e, ULONG, GetEntry, APTR, prefsHandle, a0, ULONG, iD, d0, ULONG, prefsTag, d1, APTR, a1arg, a1, ULONG, struct_Size, d2, ULONG, entry, d3, \
57 , PREFERENCES_BASE_NAME)
59 #define RemEntry(prefsHandle, iD, prefsTag, entry) \
60 LP4(0x54, ULONG, RemEntry, APTR, prefsHandle, a0, ULONG, iD, d0, ULONG, prefsTag, d1, ULONG, entry, d2, \
61 , PREFERENCES_BASE_NAME)
63 #endif /* _INLINE_PREFERENCES_H */