Mercurial > hg > xmms-sid
annotate src/xs_length.h @ 14:f5d82424b0ed
Made song-length database support FINALLY work!
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Jun 2003 18:00:03 +0000 |
parents | 4bb09e405eab |
children | ac2972a7ccd5 |
rev | line source |
---|---|
4 | 1 #ifndef XS_LENGTH_H |
2 #define XS_LENGTH_H | |
3 | |
4 #ifdef __cplusplus | |
5 extern "C" { | |
6 #endif | |
7 | |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
8 #include <glib.h> |
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 */ | |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
14 #define XS_STIL_MAXENTRY (32) |
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 */ | |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
28 gint xs_songlen_init(void); /* Initialize songlength subsystem */ |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
29 gint xs_songlen_close(void); /* Close/shutdown */ |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
30 |
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
31 gint32 xs_songlen_get(gchar *, gint); /* Get length in seconds */ |
4 | 32 |
33 | |
34 #ifdef __cplusplus | |
35 } | |
36 #endif | |
37 #endif /* XS_LENGTH_H */ |