1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 config_parser.h for the Openbox window manager
4 Copyright (c) 2011 Dana Jansens
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.
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.
16 See the COPYING file for a copy of the GNU General Public License.
19 #include "config_value.h"
24 void config_parser_startup(gboolean reconfig);
25 void config_parser_shutdown(gboolean reconfig);
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,
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);
38 void config_parser_string_uniq(const gchar *name, const gchar *def,
40 void config_parser_string_path(const gchar *name, const gchar *def,
42 void config_parser_key(const gchar *name, const gchar *def,