view src/song_change/formatter.h @ 2875:9d06c6456f98

use libSAD-based converter in icecast plugin
author Andrew O. Shadoura <bugzilla@tut.by>
date Thu, 07 Aug 2008 14:00:20 +0300
parents da77e1d2ca40
children
line wrap: on
line source

#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, gchar * format);

#endif