view src/song_change/formatter.h @ 3193:93cf4d0a0dde

alsa-ng: Prefer "PCM" volume control over "Wave" on systems that have both, for consistency with OSS plugin and maybe other apps (closes AUD-34 and AUD-36).
author John Lindgren <john.lindgren@tds.net>
date Mon, 29 Jun 2009 23:05:56 -0400
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