view src/audacious/formatter.h @ 2488:c5075a79f1aa trunk

[svn] make input->set_info overwrite tuple->track_name. it allows input plugins to update fileinfopopup along with meta data in a stream. it may incur side effects, please let me know if you find any problem.
author yaz
date Thu, 08 Feb 2007 07:00:02 -0800
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