view src/xs_stil.h @ 673:537240c47d18

It was the dawn of the third age of SID-kind, several years after the XMMS-BMP War. The Unified Audacious+XMMS-SID Project was a dream given form. Its goal: to prevent another war by creating a SID-plugin which would be functional for both worlds, where Audacious and XMMS -related code could work out their differences peacefully. It's a port of call, home away from home for coders, users, entrepreneurs, and wanderers. Humans and aliens wrapped in two million, five hundred thousand tons of spinning code, all alone in the night. It can be a dangerous place, but it's our last, best hope for peace. This is the story of the last of the XMMS-SID releases. The year is 2008. The name of the place is XMMS-SID 0.8.0rc2.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 21 Apr 2008 18:53:55 +0300
parents b0743dc9165d
children 4bf845090a25
line wrap: on
line source

#ifndef XS_STIL_H
#define XS_STIL_H

#include "xmms-sid.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Types
 */
typedef struct {
    gchar    *name,
        *author,
        *title,
        *info;
} stil_subnode_t;


typedef struct _stil_node_t {
    gchar            *filename;
    gint            nsubTunes;
    stil_subnode_t        **subTunes;
    struct _stil_node_t    *prev, *next;
} stil_node_t;


typedef struct {
    stil_node_t    *nodes,
            **pindex;
    size_t        n;
} xs_stildb_t;


/* Functions
 */
gint            xs_stildb_read(xs_stildb_t *, gchar *);
gint            xs_stildb_index(xs_stildb_t *);
void            xs_stildb_free(xs_stildb_t *);
stil_node_t *    xs_stildb_get_node(xs_stildb_t *, gchar *);

#ifdef __cplusplus
}
#endif
#endif /* XS_STIL_H */