annotate src/xs_stil.h @ 526:fa95d942f226

Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 20 Feb 2007 16:53:05 +0000
parents 81756f412b43
children acaba070cf49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
526
fa95d942f226 Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 509
diff changeset
1 #ifndef XS_STIL_H
fa95d942f226 Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 509
diff changeset
2 #define XS_STIL_H
66
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
214
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 117
diff changeset
4 #include "xmms-sid.h"
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 117
diff changeset
5
66
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #ifdef __cplusplus
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 extern "C" {
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 #endif
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
526
fa95d942f226 Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 509
diff changeset
10 /* Types
66
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 */
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 typedef struct {
94
086681f70910 Start of re-write of STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents: 66
diff changeset
13 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
14 *pAuthor,
473
f1a997715ef5 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 461
diff changeset
15 *pTitle,
117
453ac1293f6a Fixed severe bug in xs_strmcat()
Matti Hamalainen <ccr@tnsp.org>
parents: 109
diff changeset
16 *pInfo;
66
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 } t_xs_stil_subnode;
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18
392
b09d74eb71e6 Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents: 330
diff changeset
19
66
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 } t_xs_stil_node;
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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;
509
81756f412b43 Changes based on patch from Heikki 'shd' Orsila: Fix a crash on 64-bit
Matti Hamalainen <ccr@tnsp.org>
parents: 473
diff changeset
32 size_t n;
227
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
526
fa95d942f226 Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 509
diff changeset
36 /* Functions
66
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 */
227
92bad4c7b998 Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
38 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
39 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
40 void xs_stildb_free(t_xs_stildb *);
461
a1224c1f8670 STILdb handling glue moved to xmms-sid.c
Matti Hamalainen <ccr@tnsp.org>
parents: 392
diff changeset
41 t_xs_stil_node * xs_stildb_get_node(t_xs_stildb *, gchar *);
66
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 #ifdef __cplusplus
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 }
debb9584f638 Re-added header
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45 #endif
526
fa95d942f226 Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents: 509
diff changeset
46 #endif /* XS_STIL_H */