]> icculus.org git repositories - dana/openbox.git/blob - openbox/config_parser.h
wip: Add config_parser.c which will provide a nice means to specify config variables...
[dana/openbox.git] / openbox / config_parser.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3    config_parser.h for the Openbox window manager
4    Copyright (c) 2011        Dana Jansens
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    See the COPYING file for a copy of the GNU General Public License.
17 */
18
19 #include "config_value.h"
20 #include "obt/xml.h"
21
22 #include <glib.h>
23
24 void config_parser_startup(gboolean reconfig);
25 void config_parser_shutdown(gboolean reconfig);
26
27 /*! Register the configuration option @name, with the default value @def.
28   The value of the option will be stored in @v. */
29 void config_parser_bool(const gchar *name, const gchar *def, gboolean *v);
30 void config_parser_int(const gchar *name, const gchar *def, gint *v);
31 void config_parser_string(const gchar *name, const gchar *def,
32                           const gchar **v);
33 void config_parser_enum(const gchar *name, const gchar *def, guint *v,
34                         const ObConfigValueEnum choices[]);
35 void config_parser_list(const gchar *name, GList *def, const GList **v);
36
37
38 void config_parser_string_uniq(const gchar *name, const gchar *def,
39                                const gchar **v);
40 void config_parser_string_path(const gchar *name, const gchar *def,
41                                const gchar **v);
42 void config_parser_key(const gchar *name, const gchar *def,
43                        const gchar **v);