annotate libaudacious/rcfile.h @ 2203:60bd49189fde trunk

[svn] - two realcolour modes for voiceprint vis: Fire and Ice - removed duplicate code from vis.c
author marvin
date Fri, 22 Dec 2006 20:10:22 -0800
parents f18a5b617c34
children f363009b7410
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* XMMS - Cross-platform multimedia player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
2105
f18a5b617c34 [svn] - move to GPLv2-only. Based on my interpretation of the license, we are
nenolod
parents: 2060
diff changeset
6 * the Free Software Foundation; under version 2 of the License.
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * along with this program; if not, write to the Free Software
1459
705d4c089fce [svn] Fix postal code.
chainsaw
parents: 1458
diff changeset
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 #ifndef RCFILE_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 #define RCFILE_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21
2060
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
22 /**
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
23 * RcLine:
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
24 * @key: A key for the key->value mapping.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
25 * @value: A value for the key->value mapping.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
26 *
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
27 * RcLine objects contain key->value mappings.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
28 **/
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 typedef struct {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 gchar *key;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 gchar *value;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 } RcLine;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33
2060
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
34 /**
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
35 * RcSection:
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
36 * @name: The name for the #RcSection.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
37 * @lines: A list of key->value mappings for the #RcSection.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
38 *
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
39 * RcSection objects contain collections of key->value mappings.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
40 **/
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 typedef struct {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 gchar *name;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 GList *lines;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 } RcSection;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45
2060
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
46 /**
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
47 * RcFile:
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
48 * @sections: A list of sections.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
49 *
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
50 * An RcFile object contains a collection of key->value mappings organized by section.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 1459
diff changeset
51 **/
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 typedef struct {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 GList *sections;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 } RcFile;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 G_BEGIN_DECLS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 RcFile *bmp_rcfile_new(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 void bmp_rcfile_free(RcFile * file);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 RcFile *bmp_rcfile_open(const gchar * filename);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 gboolean bmp_rcfile_write(RcFile * file, const gchar * filename);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 gboolean bmp_rcfile_read_string(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 const gchar * key, gchar ** value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 gboolean bmp_rcfile_read_int(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 const gchar * key, gint * value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 gboolean bmp_rcfile_read_bool(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 const gchar * key, gboolean * value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 gboolean bmp_rcfile_read_float(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 const gchar * key, gfloat * value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 gboolean bmp_rcfile_read_double(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 const gchar * key, gdouble * value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 void bmp_rcfile_write_string(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 const gchar * key, const gchar * value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 void bmp_rcfile_write_int(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 const gchar * key, gint value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 void bmp_rcfile_write_boolean(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 const gchar * key, gboolean value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 void bmp_rcfile_write_float(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 const gchar * key, gfloat value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 void bmp_rcfile_write_double(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 const gchar * key, gdouble value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 void bmp_rcfile_remove_key(RcFile * file, const gchar * section,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 const gchar * key);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 G_END_DECLS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91 #endif // RCFILE_H