comparison src/audacious/rcfile.h @ 4410:82f323bd68fc

Rename bmp_rcfile* -> aud_rcfile*
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 31 Mar 2008 06:23:31 +0300
parents f1c756f39e6c
children 2eee464379dc
comparison
equal deleted inserted replaced
4409:8cb646ddae62 4410:82f323bd68fc
17 * along with this program. If not, see <http://www.gnu.org/licenses>. 17 * along with this program. If not, see <http://www.gnu.org/licenses>.
18 * 18 *
19 * The Audacious team does not consider modular code linking to 19 * The Audacious team does not consider modular code linking to
20 * Audacious or using our public API to be a derived work. 20 * Audacious or using our public API to be a derived work.
21 */ 21 */
22 #ifndef RCFILE_H 22 #ifndef __AUDACIOUS_RCFILE_H__
23 #define RCFILE_H 23 #define __AUDACIOUS_RCFILE_H__
24 24
25 #include <glib.h> 25 #include <glib.h>
26
27 G_BEGIN_DECLS
26 28
27 /** 29 /**
28 * RcLine: 30 * RcLine:
29 * @key: A key for the key->value mapping. 31 * @key: A key for the key->value mapping.
30 * @value: A value for the key->value mapping. 32 * @value: A value for the key->value mapping.
56 **/ 58 **/
57 typedef struct { 59 typedef struct {
58 GList *sections; 60 GList *sections;
59 } RcFile; 61 } RcFile;
60 62
61 G_BEGIN_DECLS
62 63
63 RcFile *bmp_rcfile_new(void); 64 RcFile *aud_rcfile_new(void);
64 void bmp_rcfile_free(RcFile * file); 65 void aud_rcfile_free(RcFile * file);
65 66
66 RcFile *bmp_rcfile_open(const gchar * filename); 67 RcFile *aud_rcfile_open(const gchar * filename);
67 gboolean bmp_rcfile_write(RcFile * file, const gchar * filename); 68 gboolean aud_rcfile_write(RcFile * file, const gchar * filename);
68 69
69 gboolean bmp_rcfile_read_string(RcFile * file, const gchar * section, 70 gboolean aud_rcfile_read_string(RcFile * file, const gchar * section,
70 const gchar * key, gchar ** value); 71 const gchar * key, gchar ** value);
71 gboolean bmp_rcfile_read_int(RcFile * file, const gchar * section, 72 gboolean aud_rcfile_read_int(RcFile * file, const gchar * section,
72 const gchar * key, gint * value); 73 const gchar * key, gint * value);
73 gboolean bmp_rcfile_read_bool(RcFile * file, const gchar * section, 74 gboolean aud_rcfile_read_bool(RcFile * file, const gchar * section,
74 const gchar * key, gboolean * value); 75 const gchar * key, gboolean * value);
75 gboolean bmp_rcfile_read_float(RcFile * file, const gchar * section, 76 gboolean aud_rcfile_read_float(RcFile * file, const gchar * section,
76 const gchar * key, gfloat * value); 77 const gchar * key, gfloat * value);
77 gboolean bmp_rcfile_read_double(RcFile * file, const gchar * section, 78 gboolean aud_rcfile_read_double(RcFile * file, const gchar * section,
78 const gchar * key, gdouble * value); 79 const gchar * key, gdouble * value);
79 80
80 void bmp_rcfile_write_string(RcFile * file, const gchar * section, 81 void aud_rcfile_write_string(RcFile * file, const gchar * section,
81 const gchar * key, const gchar * value); 82 const gchar * key, const gchar * value);
82 void bmp_rcfile_write_int(RcFile * file, const gchar * section, 83 void aud_rcfile_write_int(RcFile * file, const gchar * section,
83 const gchar * key, gint value); 84 const gchar * key, gint value);
84 void bmp_rcfile_write_boolean(RcFile * file, const gchar * section, 85 void aud_rcfile_write_boolean(RcFile * file, const gchar * section,
85 const gchar * key, gboolean value); 86 const gchar * key, gboolean value);
86 void bmp_rcfile_write_float(RcFile * file, const gchar * section, 87 void aud_rcfile_write_float(RcFile * file, const gchar * section,
87 const gchar * key, gfloat value); 88 const gchar * key, gfloat value);
88 void bmp_rcfile_write_double(RcFile * file, const gchar * section, 89 void aud_rcfile_write_double(RcFile * file, const gchar * section,
89 const gchar * key, gdouble value); 90 const gchar * key, gdouble value);
90 91
91 void bmp_rcfile_remove_key(RcFile * file, const gchar * section, 92 void aud_rcfile_remove_key(RcFile * file, const gchar * section,
92 const gchar * key); 93 const gchar * key);
93 94
94 G_END_DECLS 95 G_END_DECLS
95 96
96 #endif // RCFILE_H 97 #endif /* __AUDACIOUS_RCFILE_H__ */