1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2008 Imendio AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20 
21 #ifndef __IGE_CONF_PRIVATE_H__
22 #define __IGE_CONF_PRIVATE_H__
23 
24 #include <glib.h>
25 #include "ige-conf.h"
26 
27 G_BEGIN_DECLS
28 
29 typedef enum {
30         IGE_CONF_TYPE_INT,
31         IGE_CONF_TYPE_BOOLEAN,
32         IGE_CONF_TYPE_STRING
33 } IgeConfType;
34 
35 typedef struct {
36         IgeConfType  type;
37         gchar       *key;
38         gchar       *value;
39 } IgeConfDefaultItem;
40 
41 GList *      _ige_conf_defaults_read_file  (const gchar  *path,
42 					    GError      **error);
43 void         _ige_conf_defaults_free_list  (GList        *defaults);
44 gchar *      _ige_conf_defaults_get_root   (GList        *defaults);
45 const gchar *_ige_conf_defaults_get_string (GList        *defaults,
46 					    const gchar  *key);
47 gint         _ige_conf_defaults_get_int    (GList        *defaults,
48 					    const gchar  *key);
49 gboolean     _ige_conf_defaults_get_bool   (GList        *defaults,
50 					    const gchar  *key);
51 
52 G_END_DECLS
53 
54 #endif /* __IGE_CONF_PRIVATE_H__ */
55