summaryrefslogtreecommitdiff
path: root/openbox/config.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-22 14:41:19 +0000
committerDana Jansens <danakj@orodu.net>2003-03-22 14:41:19 +0000
commit56dc0446cd8a9a2685e1ffadb58b781e52e1a95a (patch)
treebb5743d179f9061979c1d01430c860843db377fd /openbox/config.h
parent4502cad55033f4a703cb562d27d637f41a05c5c6 (diff)
start the config system, add the config file parser
Diffstat (limited to 'openbox/config.h')
-rw-r--r--openbox/config.h29
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