]> icculus.org git repositories - dana/openbox.git/blob - openbox/config.h
start the config system, add the config file parser
[dana/openbox.git] / openbox / config.h
1 #ifndef __config_h
2 #define __config_h
3
4 #include <glib.h>
5
6 typedef enum {
7     Config_String,
8     Config_Integer
9 } ConfigValueType;
10
11 typedef union {
12     char *string;
13     int integer;
14 } ConfigValue;
15
16 typedef struct {
17     char *name;
18     ConfigValueType type;
19     ConfigValue value;
20 } ConfigEntry;
21
22 void config_startup();
23 void config_shutdown();
24
25 gboolean config_set(char *name, ConfigValueType type, ConfigValue value);
26
27 void config_parse();
28
29 #endif