Mercurial > audlegacy
comparison libaudacious/configdb.h @ 0:cb178e5ad177 trunk
[svn] Import audacious source.
author | nenolod |
---|---|
date | Mon, 24 Oct 2005 03:06:47 -0700 |
parents | |
children | 5cf8de9f2c28 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cb178e5ad177 |
---|---|
1 #ifndef CONFIGDB_H | |
2 #define CONFIGDB_H | |
3 | |
4 #include <glib.h> | |
5 | |
6 | |
7 typedef struct _ConfigDb ConfigDb; | |
8 | |
9 | |
10 G_BEGIN_DECLS | |
11 | |
12 ConfigDb *bmp_cfg_db_open(); | |
13 void bmp_cfg_db_close(ConfigDb *db); | |
14 | |
15 gboolean bmp_cfg_db_get_string(ConfigDb *db, | |
16 const gchar *section, | |
17 const gchar *key, | |
18 gchar **value); | |
19 gboolean bmp_cfg_db_get_int(ConfigDb *db, | |
20 const gchar *section, | |
21 const gchar *key, | |
22 gint *value); | |
23 gboolean bmp_cfg_db_get_bool(ConfigDb *db, | |
24 const gchar *section, | |
25 const gchar *key, | |
26 gboolean *value); | |
27 gboolean bmp_cfg_db_get_float(ConfigDb *db, | |
28 const gchar *section, | |
29 const gchar *key, | |
30 gfloat *value); | |
31 gboolean bmp_cfg_db_get_double(ConfigDb *db, | |
32 const gchar *section, | |
33 const gchar *key, | |
34 gdouble *value); | |
35 | |
36 void bmp_cfg_db_set_string(ConfigDb *db, | |
37 const gchar *section, | |
38 const gchar *key, | |
39 gchar *value); | |
40 void bmp_cfg_db_set_int(ConfigDb *db, | |
41 const gchar *section, | |
42 const gchar *key, | |
43 gint value); | |
44 void bmp_cfg_db_set_bool(ConfigDb *db, | |
45 const gchar *section, | |
46 const gchar *key, | |
47 gboolean value); | |
48 void bmp_cfg_db_set_float(ConfigDb *db, | |
49 const gchar *section, | |
50 const gchar *key, | |
51 gfloat value); | |
52 void bmp_cfg_db_set_double(ConfigDb *db, | |
53 const gchar *section, | |
54 const gchar *key, | |
55 gdouble value); | |
56 | |
57 void bmp_cfg_db_unset_key(ConfigDb *db, | |
58 const gchar *section, | |
59 const gchar *key); | |
60 | |
61 G_END_DECLS | |
62 | |
63 #endif // CONFIGDB_H | |
64 |