Mercurial > hg > xmms-sid
annotate src/xs_length.h @ 457:693baa150eea
Cosmetics
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 24 Jan 2007 22:01:02 +0000 |
parents | f997b79a7251 |
children | c67a7f2fd586 |
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 | |
457 | 11 /* Types |
4 | 12 */ |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
39
diff
changeset
|
13 typedef struct _t_xs_sldb_node { |
14
f5d82424b0ed
Made song-length database support FINALLY work!
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
14 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
|
15 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
|
16 gint *sLengths; /* Lengths in seconds */ |
87
94497283affa
Various fixes and improvements
Matti Hamalainen <ccr@tnsp.org>
parents:
62
diff
changeset
|
17 struct _t_xs_sldb_node *pPrev, *pNext; |
62
0d1df20745dd
Started to rewrite STIL-support
Matti Hamalainen <ccr@tnsp.org>
parents:
39
diff
changeset
|
18 } t_xs_sldb_node; |
4 | 19 |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
20 |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
21 typedef struct { |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
22 t_xs_sldb_node *pNodes, |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
23 **ppIndex; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
24 gint n; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
25 } t_xs_sldb; |
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
26 |
4 | 27 |
457 | 28 /* Functions |
4 | 29 */ |
402
f997b79a7251
More work on merging of improved STIL/SLDB handling code with completely
Matti Hamalainen <ccr@tnsp.org>
parents:
392
diff
changeset
|
30 gint xs_sldb_read(t_xs_sldb *, const gchar *); |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
31 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
|
32 void xs_sldb_free(t_xs_sldb *); |
402
f997b79a7251
More work on merging of improved STIL/SLDB handling code with completely
Matti Hamalainen <ccr@tnsp.org>
parents:
392
diff
changeset
|
33 t_xs_sldb_node * xs_sldb_get(t_xs_sldb *, const gchar *); |
4 | 34 |
35 | |
230 | 36 gint xs_songlen_init(void); |
37 void xs_songlen_close(void); | |
402
f997b79a7251
More work on merging of improved STIL/SLDB handling code with completely
Matti Hamalainen <ccr@tnsp.org>
parents:
392
diff
changeset
|
38 t_xs_sldb_node * xs_songlen_get(const gchar *); |
230 | 39 |
4 | 40 #ifdef __cplusplus |
41 } | |
42 #endif | |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
43 #endif /* _XS_LENGTH_H */ |