ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/prefs.h
(Generate patch)

Comparing BasiliskII/src/include/prefs.h (file contents):
Revision 1.2 by cebix, 2000-04-10T18:53:33Z vs.
Revision 1.4 by cebix, 2001-01-04T19:50:23Z

# Line 23 | Line 23
23  
24   #include <stdio.h>
25  
26 < extern void PrefsInit(void);
26 > extern void PrefsInit(int argc, char **argv);
27   extern void PrefsExit(void);
28  
29 + extern void AddPrefsDefaults(void);
30   extern void AddPlatformPrefsDefaults(void);
31  
32   // Preferences loading/saving
# Line 38 | Line 39 | extern void SavePrefsToStream(FILE *f);
39   // Public preferences access functions
40   extern void PrefsAddString(const char *name, const char *s);
41   extern void PrefsAddBool(const char *name, bool b);
41 extern void PrefsAddInt16(const char *name, int16 val);
42   extern void PrefsAddInt32(const char *name, int32 val);
43  
44   extern void PrefsReplaceString(const char *name, const char *s, int index = 0);
45   extern void PrefsReplaceBool(const char *name, bool b);
46 extern void PrefsReplaceInt16(const char *name, int16 val);
46   extern void PrefsReplaceInt32(const char *name, int32 val);
47  
48   extern const char *PrefsFindString(const char *name, int index = 0);
49   extern bool PrefsFindBool(const char *name);
51 extern int16 PrefsFindInt16(const char *name);
50   extern int32 PrefsFindInt32(const char *name);
51  
52   extern void PrefsRemoveItem(const char *name, int index = 0);
# Line 62 | Line 60 | extern void PrefsRemoveItem(const char *
60   enum prefs_type {
61          TYPE_STRING,            // char[]
62          TYPE_BOOLEAN,           // bool
65        TYPE_INT16,                     // int16
63          TYPE_INT32,                     // int32
64          TYPE_ANY,                       // Wildcard for find_node
65          TYPE_END = TYPE_ANY     // Terminator for prefs_desc list

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines