Mercurial > hg > xmms-sid
annotate src/xs_length.h @ 41:c145ff12f2d0
Various improvements
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Jun 2003 23:50:00 +0000 |
parents | 85a7753e2a9a |
children | 0d1df20745dd |
rev | line source |
---|---|
4 | 1 #ifndef XS_LENGTH_H |
2 #define XS_LENGTH_H | |
3 | |
4 #ifdef __cplusplus | |
5 extern "C" { | |
6 #endif | |
7 | |
39 | 8 #include "xmms-sid.h" |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
9 #include "xs_md5.h" |
4 | 10 |
11 /* | |
12 * Defines and typedefs | |
13 */ | |
39 | 14 #define XS_STIL_MAXENTRY (48) |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
15 typedef struct dbnode { |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
16 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
|
17 gint nLengths; /* Number of lengths */ |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
18 gint32 sLengths[XS_STIL_MAXENTRY]; |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
19 /* Lengths in seconds */ |
4 | 20 |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
21 struct dbnode *pNext; |
4 | 22 } t_xs_dbentry; |
23 | |
24 | |
25 /* | |
26 * Functions | |
27 */ | |
39 | 28 gint xs_songlen_init(void); /* Initialize songlength subsystem */ |
29 void xs_songlen_close(void); /* Close/shutdown */ | |
30 gint32 xs_songlen_get(gchar *, gint); /* Get length in seconds */ | |
4 | 31 |
32 | |
33 #ifdef __cplusplus | |
34 } | |
35 #endif | |
36 #endif /* XS_LENGTH_H */ |