Mercurial > hg > xmms-sid
annotate src/xs_stil.h @ 227:92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 19 Dec 2004 16:53:05 +0000 |
parents | 575686094eb1 |
children | 608f31f6c095 |
rev | line source |
---|---|
66 | 1 #ifndef XS_STIL_H |
2 #define XS_STIL_H | |
3 | |
214 | 4 #include "xmms-sid.h" |
5 | |
66 | 6 #ifdef __cplusplus |
7 extern "C" { | |
8 #endif | |
9 | |
10 /* | |
11 * Defines and typedefs | |
12 */ | |
13 typedef struct { | |
94
086681f70910
Start of re-write of STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
66
diff
changeset
|
14 gchar *pName, |
109
578b71b62eeb
Fileinfo now basically working, STIL COMMENT-fields are not yet parsed or shown.
Matti Hamalainen <ccr@tnsp.org>
parents:
94
diff
changeset
|
15 *pAuthor, |
117
453ac1293f6a
Fixed severe bug in xs_strmcat()
Matti Hamalainen <ccr@tnsp.org>
parents:
109
diff
changeset
|
16 *pInfo; |
66 | 17 } t_xs_stil_subnode; |
18 | |
19 typedef struct _t_xs_stil_node { | |
94
086681f70910
Start of re-write of STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
66
diff
changeset
|
20 gchar *pcFilename; |
086681f70910
Start of re-write of STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
66
diff
changeset
|
21 t_xs_stil_subnode subTune[XS_STIL_MAXENTRY]; |
086681f70910
Start of re-write of STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
66
diff
changeset
|
22 struct _t_xs_stil_node *pPrev, *pNext; |
66 | 23 } t_xs_stil_node; |
24 | |
25 | |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
26 typedef struct { |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
27 t_xs_stil_node *pNodes, |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
28 **ppIndex; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
29 gint n; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
30 } t_xs_stildb; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
31 |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
32 |
66 | 33 /* |
34 * Functions | |
35 */ | |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
36 gint xs_stildb_read(t_xs_stildb *, gchar *); |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
37 gint xs_stildb_index(t_xs_stildb *); |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
38 void xs_stildb_free(t_xs_stildb *); |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
39 t_xs_stil_node * xs_stildb_get(t_xs_stildb *, gchar *, gchar *); |
66 | 40 |
41 | |
42 #ifdef __cplusplus | |
43 } | |
44 #endif | |
45 #endif /* XS_STIL_H */ |