diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-22 14:41:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-22 14:41:19 +0000 |
| commit | 56dc0446cd8a9a2685e1ffadb58b781e52e1a95a (patch) | |
| tree | bb5743d179f9061979c1d01430c860843db377fd /openbox/config.c | |
| parent | 4502cad55033f4a703cb562d27d637f41a05c5c6 (diff) | |
start the config system, add the config file parser
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 37 |
1 files changed, 37 insertions, 0 deletions
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 <stdio.h> +#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; +} |
