From 56dc0446cd8a9a2685e1ffadb58b781e52e1a95a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 22 Mar 2003 14:41:19 +0000 Subject: start the config system, add the config file parser --- openbox/config.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 openbox/config.h (limited to 'openbox/config.h') 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 + +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 -- cgit v1.2.3