Mercurial > audlegacy
diff Plugins/Input/sid/xs_stil.h @ 269:1b82a9932b60 trunk
[svn] Import sid plugin. Ported from XMMS by giacomo.
author | chainsaw |
---|---|
date | Thu, 08 Dec 2005 15:12:12 -0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Plugins/Input/sid/xs_stil.h Thu Dec 08 15:12:12 2005 -0800 @@ -0,0 +1,49 @@ +#ifndef XS_STIL_H +#define XS_STIL_H + +#include "xmms-sid.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Defines and typedefs + */ +typedef struct { + gchar *pName, + *pAuthor, + *pInfo; +} t_xs_stil_subnode; + +typedef struct _t_xs_stil_node { + gchar *pcFilename; + t_xs_stil_subnode subTunes[XS_STIL_MAXENTRY+1]; + struct _t_xs_stil_node *pPrev, *pNext; +} t_xs_stil_node; + + +typedef struct { + t_xs_stil_node *pNodes, + **ppIndex; + gint n; +} t_xs_stildb; + + +/* + * Functions + */ +gint xs_stildb_read(t_xs_stildb *, gchar *); +gint xs_stildb_index(t_xs_stildb *); +void xs_stildb_free(t_xs_stildb *); +t_xs_stil_node * xs_stildb_get(t_xs_stildb *, gchar *, gchar *); + + +gint xs_stil_init(void); +void xs_stil_close(void); +t_xs_stil_node * xs_stil_get(gchar *); + +#ifdef __cplusplus +} +#endif +#endif /* XS_STIL_H */