diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/song_change/formatter.h	Mon Mar 31 08:14:09 2008 +0300
@@ -0,0 +1,16 @@
+#ifndef FORMATTER_H
+#define FORMATTER_H
+
+#include <glib.h>
+
+typedef struct {
+    gchar *values[256];
+} Formatter;
+
+Formatter *formatter_new(void);
+void formatter_destroy(Formatter * formatter);
+void formatter_associate(Formatter * formatter, const guchar id, const gchar * value);
+void formatter_dissociate(Formatter * formatter, const guchar id);
+gchar *formatter_format(Formatter * formatter, const gchar * format);
+
+#endif