Mercurial > hg > xmms-sid
annotate src/xs_stil.h @ 392:b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
structures. Indentation cleanups, etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 31 May 2006 10:02:00 +0000 |
parents | e0abd282d6b7 |
children | a1224c1f8670 |
rev | line source |
---|---|
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
330
diff
changeset
|
1 #ifndef _XS_STIL_H |
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
330
diff
changeset
|
2 #define _XS_STIL_H |
66 | 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 | |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
330
diff
changeset
|
19 |
66 | 20 typedef struct _t_xs_stil_node { |
94
086681f70910
Start of re-write of STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
66
diff
changeset
|
21 gchar *pcFilename; |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
330
diff
changeset
|
22 gint nsubTunes; |
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
330
diff
changeset
|
23 t_xs_stil_subnode **subTunes; |
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
330
diff
changeset
|
24 |
94
086681f70910
Start of re-write of STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
66
diff
changeset
|
25 struct _t_xs_stil_node *pPrev, *pNext; |
66 | 26 } t_xs_stil_node; |
27 | |
28 | |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
29 typedef struct { |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
30 t_xs_stil_node *pNodes, |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
31 **ppIndex; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
32 gint n; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
33 } t_xs_stildb; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
34 |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
35 |
66 | 36 /* |
37 * Functions | |
38 */ | |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
39 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
|
40 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
|
41 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
|
42 t_xs_stil_node * xs_stildb_get(t_xs_stildb *, gchar *, gchar *); |
66 | 43 |
44 | |
230 | 45 gint xs_stil_init(void); |
46 void xs_stil_close(void); | |
47 t_xs_stil_node * xs_stil_get(gchar *); | |
48 | |
66 | 49 #ifdef __cplusplus |
50 } | |
51 #endif | |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
330
diff
changeset
|
52 #endif /* _XS_STIL_H */ |