269
|
1 #ifndef XS_STIL_H
|
|
2 #define XS_STIL_H
|
|
3
|
|
4 #include "xmms-sid.h"
|
|
5
|
|
6 #ifdef __cplusplus
|
|
7 extern "C" {
|
|
8 #endif
|
|
9
|
|
10 /*
|
|
11 * Defines and typedefs
|
|
12 */
|
|
13 typedef struct {
|
|
14 gchar *pName,
|
|
15 *pAuthor,
|
|
16 *pInfo;
|
|
17 } t_xs_stil_subnode;
|
|
18
|
|
19 typedef struct _t_xs_stil_node {
|
|
20 gchar *pcFilename;
|
|
21 t_xs_stil_subnode subTunes[XS_STIL_MAXENTRY+1];
|
|
22 struct _t_xs_stil_node *pPrev, *pNext;
|
|
23 } t_xs_stil_node;
|
|
24
|
|
25
|
|
26 typedef struct {
|
|
27 t_xs_stil_node *pNodes,
|
|
28 **ppIndex;
|
|
29 gint n;
|
|
30 } t_xs_stildb;
|
|
31
|
|
32
|
|
33 /*
|
|
34 * Functions
|
|
35 */
|
|
36 gint xs_stildb_read(t_xs_stildb *, gchar *);
|
|
37 gint xs_stildb_index(t_xs_stildb *);
|
|
38 void xs_stildb_free(t_xs_stildb *);
|
|
39 t_xs_stil_node * xs_stildb_get(t_xs_stildb *, gchar *, gchar *);
|
|
40
|
|
41
|
|
42 gint xs_stil_init(void);
|
|
43 void xs_stil_close(void);
|
|
44 t_xs_stil_node * xs_stil_get(gchar *);
|
|
45
|
|
46 #ifdef __cplusplus
|
|
47 }
|
|
48 #endif
|
|
49 #endif /* XS_STIL_H */
|