diff options
Diffstat (limited to 'openbox/config.h')
| -rw-r--r-- | openbox/config.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/openbox/config.h b/openbox/config.h new file mode 100644 index 00000000..9797f9e4 --- /dev/null +++ b/openbox/config.h @@ -0,0 +1,29 @@ +#ifndef __config_h +#define __config_h + +#include <glib.h> + +typedef enum { + Config_String, + Config_Integer +} ConfigValueType; + +typedef union { + char *string; + int integer; +} ConfigValue; + +typedef struct { + char *name; + ConfigValueType type; + ConfigValue value; +} ConfigEntry; + +void config_startup(); +void config_shutdown(); + +gboolean config_set(char *name, ConfigValueType type, ConfigValue value); + +void config_parse(); + +#endif |
