Mercurial > hg > xmms-sid
annotate src/xs_length.h @ 751:55eea3fa8868
Rename some structures.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Nov 2012 18:42:57 +0200 |
parents | 27fac414349d |
children | 469b341734b2 |
rev | line source |
---|---|
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
509
diff
changeset
|
1 #ifndef XS_LENGTH_H |
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
509
diff
changeset
|
2 #define XS_LENGTH_H |
4 | 3 |
214 | 4 #include "xmms-sid.h" |
706
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
5 #ifdef AUDACIOUS_PLUGIN |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
6 #include <audacious/audutil.h> |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
7 #define XS_MD5HASH_LENGTH AUD_MD5HASH_LENGTH |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
8 #define XS_MD5HASH_LENGTH_CH AUD_MD5HASH_LENGTH_CH |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
9 #define xs_md5hash_t aud_md5hash_t |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
10 #define xs_md5state_t aud_md5state_t |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
11 #define xs_md5_init aud_md5_init |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
12 #define xs_md5_append aud_md5_append |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
13 #define xs_md5_finish aud_md5_finish |
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
14 #else |
214 | 15 #include "xs_md5.h" |
706
27fac414349d
Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
684
diff
changeset
|
16 #endif |
214 | 17 |
4 | 18 #ifdef __cplusplus |
19 extern "C" { | |
20 #endif | |
21 | |
457 | 22 /* Types |
4 | 23 */ |
751 | 24 typedef struct _XSSLDBNode { |
660
b0743dc9165d
Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
657
diff
changeset
|
25 xs_md5hash_t md5Hash; /* 128-bit MD5 hash-digest */ |
684 | 26 gint nlengths; /* Number of lengths */ |
27 gint *lengths; /* Lengths in seconds */ | |
751 | 28 struct _XSSLDBNode *prev, *next; |
29 } XSSLDBNode; | |
4 | 30 |
392
b09d74eb71e6
Working on getting STIL and SLDB using completely dynamically allocated
Matti Hamalainen <ccr@tnsp.org>
parents:
334
diff
changeset
|
31 |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
32 typedef struct { |
751 | 33 XSSLDBNode *nodes, |
684 | 34 **pindex; |
35 size_t n; | |
751 | 36 } XSSLDB; |
227
92bad4c7b998
Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents:
214
diff
changeset
|
37 |
4 | 38 |
457 | 39 /* Functions |
4 | 40 */ |
751 | 41 gint xs_sldb_read(XSSLDB *, const gchar *); |
42 gint xs_sldb_index(XSSLDB *); | |
43 void xs_sldb_free(XSSLDB *); | |
44 XSSLDBNode * xs_sldb_get(XSSLDB *, const gchar *); | |
4 | 45 |
46 #ifdef __cplusplus | |
47 } | |
48 #endif | |
526
fa95d942f226
Header cleanup; Moved some types from xmms-sid.h to xs_player.h; Renamed few functions.
Matti Hamalainen <ccr@tnsp.org>
parents:
509
diff
changeset
|
49 #endif /* XS_LENGTH_H */ |