2426
|
1 #ifndef XMMS_FORMATTER_H
|
|
2 #define XMMS_FORMATTER_H
|
|
3
|
|
4 #include <glib.h>
|
|
5
|
|
6 /**
|
|
7 * Formatter:
|
|
8 * @values: The stack of values used for replacement.
|
|
9 *
|
|
10 * Formatter objects contain id->replacement mapping tables.
|
|
11 **/
|
|
12 typedef struct {
|
|
13 gchar *values[256];
|
|
14 } Formatter;
|
|
15
|
|
16
|
|
17 G_BEGIN_DECLS
|
|
18
|
|
19 Formatter *formatter_new(void);
|
|
20 void formatter_destroy(Formatter * formatter);
|
|
21 void formatter_associate(Formatter * formatter, guchar id,
|
|
22 gchar * value);
|
|
23 void formatter_dissociate(Formatter * formatter, guchar id);
|
|
24 gchar *formatter_format(Formatter * formatter, gchar * format);
|
|
25
|
|
26 G_END_DECLS
|
|
27
|
|
28 #endif
|