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.1 by cebix, 1999-10-03T14:16:26Z vs.
Revision 1.5 by cebix, 2001-02-02T20:52:59Z

# Line 1 | Line 1
1   /*
2   *  prefs.h - Preferences handling
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# 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