view src/audacious/formatter.h @ 3979:67f01143e613

improve on-demand probing: - playlist which contains subtunes is loaded properly. - custom uri is handled properly. - playlist_load_ins_file_tuple() has been rewritten. (necessary to subtune fix.) - playlist_load_ins_file() became wrapper function of playlist_load_ins_file_tuple(). - __playlist_ins_with_info() has been removed.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Wed, 21 Nov 2007 00:46:54 +0900
parents 193bae6b2c8f
children
line wrap: on
line source

#ifndef XMMS_FORMATTER_H
#define XMMS_FORMATTER_H

#include <glib.h>

/**
 * Formatter:
 * @values: The stack of values used for replacement.
 *
 * Formatter objects contain id->replacement mapping tables.
 **/
typedef struct {
    gchar *values[256];
} Formatter;


G_BEGIN_DECLS

Formatter *formatter_new(void);
void formatter_destroy(Formatter * formatter);
void formatter_associate(Formatter * formatter, guchar id,
                              gchar * value);
void formatter_dissociate(Formatter * formatter, guchar id);
gchar *formatter_format(Formatter * formatter, gchar * format);

G_END_DECLS

#endif