Mercurial > hg > xmms-sid
annotate src/xs_length.h @ 334:19c89f9ca2cc
Misc commit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 22 Sep 2005 02:19:02 +0000 |
parents | 608f31f6c095 |
children | b09d74eb71e6 |
rev | line source |
---|---|
4 | 1 #ifndef XS_LENGTH_H |
2 #define XS_LENGTH_H | |
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 */ |
334 | 17 gint32 sLengths[XS_STIL_MAXENTRY+1]; |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
18 /* Lengths in seconds */ |
4 | 19 |
87
94497283affa
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
62
diff
changeset
|
20 struct _t_xs_sldb_node *pPrev, *pNext; |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
39
diff
changeset
|
21 } t_xs_sldb_node; |
4 | 22 |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
23 typedef struct { |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
24 t_xs_sldb_node *pNodes, |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
25 **ppIndex; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
26 gint n; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
27 } t_xs_sldb; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
28 |
4 | 29 |
30 /* | |
31 * Functions | |
32 */ | |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
33 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
|
34 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
|
35 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
|
36 t_xs_sldb_node * xs_sldb_get(t_xs_sldb *, gchar *); |
4 | 37 |
38 | |
230 | 39 gint xs_songlen_init(void); |
40 void xs_songlen_close(void); | |
41 t_xs_sldb_node * xs_songlen_get(gchar *); | |
42 | |
4 | 43 #ifdef __cplusplus |
44 } | |
45 #endif | |
46 #endif /* XS_LENGTH_H */ |