comparison src/song_change/formatter.h @ 2480:f88dd72c9156

Moved formatter stuff to the only plugin that actually used it.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 31 Mar 2008 08:14:09 +0300
parents
children da77e1d2ca40
comparison
equal deleted inserted replaced
2477:11f7c096f7e6 2480:f88dd72c9156
1 #ifndef FORMATTER_H
2 #define FORMATTER_H
3
4 #include <glib.h>
5
6 typedef struct {
7 gchar *values[256];
8 } Formatter;
9
10 Formatter *formatter_new(void);
11 void formatter_destroy(Formatter * formatter);
12 void formatter_associate(Formatter * formatter, const guchar id, const gchar * value);
13 void formatter_dissociate(Formatter * formatter, const guchar id);
14 gchar *formatter_format(Formatter * formatter, const gchar * format);
15
16 #endif