author | Mikael Berthe <mikael@lilotux.net> |
Sat, 09 Jul 2005 09:41:31 +0100 | |
changeset 292 | 96917f04c841 |
parent 288 | 1eea0fa0955e |
child 294 | 871e53769084 |
permissions | -rw-r--r-- |
279 | 1 |
#ifndef __SETTINGS_H__ |
2 |
#define __SETTINGS_H__ 1 |
|
3 |
||
4 |
#include <glib.h> |
|
5 |
||
292
96917f04c841
Define isblank() when C99 is not used
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
6 |
#ifndef __USE_ISOC99 |
96917f04c841
Define isblank() when C99 is not used
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
7 |
# define isblank(c) ((c) == 0x20 || (c) == 0x09) |
96917f04c841
Define isblank() when C99 is not used
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
8 |
#endif |
96917f04c841
Define isblank() when C99 is not used
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
9 |
|
279 | 10 |
#define SETTINGS_TYPE_OPTION 1 |
11 |
#define SETTINGS_TYPE_ALIAS 2 |
|
12 |
#define SETTINGS_TYPE_BINDING 3 |
|
13 |
||
14 |
#define settings_opt_get(k) settings_get(SETTINGS_TYPE_OPTION, k) |
|
15 |
#define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k) |
|
16 |
||
281
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
17 |
guint parse_assigment(gchar *assignment, |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
18 |
const gchar **pkey, const gchar **pval); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
19 |
void settings_set(guint type, const gchar *key, const gchar *value); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
20 |
void settings_del(guint type, const gchar *key); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
21 |
const gchar *settings_get(guint type, const gchar *key); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
22 |
int settings_get_int(guint type, const gchar *key); |
279 | 23 |
|
288 | 24 |
const gchar *isbound(int key); |
25 |
||
279 | 26 |
#endif /* __SETTINGS_H__ */ |
27 |