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.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 openbox/config.c (limited to 'openbox/config.c') diff --git a/openbox/config.c b/openbox/config.c new file mode 100644 index 00000000..2ec6d5f7 --- /dev/null +++ b/openbox/config.c @@ -0,0 +1,37 @@ +#include "config.h" + +#ifdef HAVE_STDIO_H +# include +#endif + +static GSList *config = NULL; + +/* provided by cparse.l */ +void cparse_go(FILE *); + + +void config_startup() +{ +} + +void config_shutdown() +{ +} + +void config_parse() +{ + FILE *file; + char *path; + + path = g_build_filename(g_get_home_dir(), ".openbox", "rc3", NULL); + if ((file = fopen(path, "r")) != NULL) { + cparse_go(file); + fclose(file); + } +} + +gboolean config_set(char *name, ConfigValueType type, ConfigValue value) +{ + g_message("Setting %s\n", name); + return TRUE; +} -- cgit v1.2.3