Mercurial > hg > xmms-sid
annotate src/xs_length.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 | 19c89f9ca2cc |
children | f997b79a7251 |
rev | line source |
---|---|
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
1 #ifndef _XS_LENGTH_H |
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
2 #define _XS_LENGTH_H |
4 | 3 |
214 | 4 #include "xmms-sid.h" |
5 #include "xs_md5.h" | |
6 | |
4 | 7 #ifdef __cplusplus |
8 extern "C" { | |
9 #endif | |
10 | |
11 /* | |
12 * Defines and typedefs | |
13 */ | |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
39
diff
changeset
|
14 typedef struct _t_xs_sldb_node { |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
15 t_xs_md5hash md5Hash; /* 128-bit MD5 hash-digest */ |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
16 gint nLengths; /* Number of lengths */ |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
17 gint *sLengths; /* Lengths in seconds */ |
87
94497283affa
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
62
diff
changeset
|
18 struct _t_xs_sldb_node *pPrev, *pNext; |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
39
diff
changeset
|
19 } t_xs_sldb_node; |
4 | 20 |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
21 |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
22 typedef struct { |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
23 t_xs_sldb_node *pNodes, |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
24 **ppIndex; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
25 gint n; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
26 } t_xs_sldb; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
27 |
4 | 28 |
29 /* | |
30 * Functions | |
31 */ | |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
32 gint xs_sldb_read(t_xs_sldb *, gchar *); |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
33 gint xs_sldb_index(t_xs_sldb *); |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
34 void xs_sldb_free(t_xs_sldb *); |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
35 t_xs_sldb_node * xs_sldb_get(t_xs_sldb *, gchar *); |
4 | 36 |
37 | |
230 | 38 gint xs_songlen_init(void); |
39 void xs_songlen_close(void); | |
40 t_xs_sldb_node * xs_songlen_get(gchar *); | |
41 | |
4 | 42 #ifdef __cplusplus |
43 } | |
44 #endif | |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
45 #endif /* _XS_LENGTH_H */ |