1 #ifndef CLIB_PREFERENCES_PROTOS_H
2 #define CLIB_PREFERENCES_PROTOS_H
7 ** C prototypes. For use with 32 bit integers only.
9 ** Copyright © 2001 Amiga, Inc.
10 ** All Rights Reserved
15 #endif /* __cplusplus */
18 #include <exec/types.h>
20 #ifndef SCALOS_PREFERENCES_H
21 #include <scalos/preferences.h>
23 APTR
AllocPrefsHandle( CONST_STRPTR name
);
24 VOID
FreePrefsHandle( APTR prefsHandle
);
25 VOID
SetPreferences( APTR prefsHandle
, ULONG iD
, ULONG prefsTag
, CONST APTR a1arg
, ULONG struct_Size
);
26 ULONG
GetPreferences( APTR prefsHandle
, ULONG iD
, ULONG prefsTag
, APTR a1arg
, ULONG struct_Size
);
27 VOID
ReadPrefsHandle( APTR prefsHandle
, CONST_STRPTR filename
);
28 VOID
WritePrefsHandle( APTR prefsHandle
, CONST_STRPTR filename
);
29 struct PrefsStruct
*FindPreferences( APTR prefsHandle
, ULONG iD
, ULONG prefsTag
);
30 VOID
SetEntry( APTR prefsHandle
, ULONG iD
, ULONG prefsTag
, CONST APTR a1arg
, ULONG struct_Size
, ULONG entry
);
31 ULONG
GetEntry( APTR prefsHandle
, ULONG iD
, ULONG prefsTag
, APTR a1arg
, ULONG struct_Size
, ULONG entry
);
32 ULONG
RemEntry( APTR prefsHandle
, ULONG iD
, ULONG prefsTag
, ULONG entry
);
36 #endif /* __cplusplus */
38 #endif /* CLIB_PREFERENCES_PROTOS_H */