view libaudacious/formatter.h @ 2062:409df027cc31 trunk

[svn] - rewrite input_check_file() - make similar functions use input_check_file() instead of probing by hand
author nenolod
date Tue, 05 Dec 2006 00:31:38 -0800
parents 53a3d5db6b58
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 *xmms_formatter_new(void);
void xmms_formatter_destroy(Formatter * formatter);
void xmms_formatter_associate(Formatter * formatter, guchar id,
                              gchar * value);
void xmms_formatter_dissociate(Formatter * formatter, guchar id);
gchar *xmms_formatter_format(Formatter * formatter, gchar * format);

G_END_DECLS

#endif