annotate src/xs_length.h @ 706:27fac414349d

Synchronize Aud-SID changes.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 12 Jun 2008 21:04:10 +0300
parents 4bf845090a25
children 55eea3fa8868
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3
214
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 87
diff changeset
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
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 87
diff changeset
15 #include "xs_md5.h"
706
27fac414349d Synchronize Aud-SID changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 684
diff changeset
16 #endif
214
575686094eb1 Portability fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 87
diff changeset
17
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 #ifdef __cplusplus
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 extern "C" {
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 #endif
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
457
693baa150eea Cosmetics
Matti Hamalainen <ccr@tnsp.org>
parents: 402
diff changeset
22 /* Types
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 */
657
acaba070cf49 Lots of cosmetic code cleanups; synced the de-gettextification from Audacious-SID, I suppose it makes some sense ...
Matti Hamalainen <ccr@tnsp.org>
parents: 526
diff changeset
24 typedef struct _sldb_node_t {
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
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
26 gint nlengths; /* Number of lengths */
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
27 gint *lengths; /* Lengths in seconds */
660
b0743dc9165d Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 657
diff changeset
28 struct _sldb_node_t *prev, *next;
657
acaba070cf49 Lots of cosmetic code cleanups; synced the de-gettextification from Audacious-SID, I suppose it makes some sense ...
Matti Hamalainen <ccr@tnsp.org>
parents: 526
diff changeset
29 } sldb_node_t;
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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 {
684
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
33 sldb_node_t *nodes,
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
34 **pindex;
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
35 size_t n;
657
acaba070cf49 Lots of cosmetic code cleanups; synced the de-gettextification from Audacious-SID, I suppose it makes some sense ...
Matti Hamalainen <ccr@tnsp.org>
parents: 526
diff changeset
36 } xs_sldb_t;
227
92bad4c7b998 Improved modularization of STIL and song-length database subsystems.
Matti Hamalainen <ccr@tnsp.org>
parents: 214
diff changeset
37
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38
457
693baa150eea Cosmetics
Matti Hamalainen <ccr@tnsp.org>
parents: 402
diff changeset
39 /* Functions
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 */
684
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
41 gint xs_sldb_read(xs_sldb_t *, const gchar *);
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
42 gint xs_sldb_index(xs_sldb_t *);
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
43 void xs_sldb_free(xs_sldb_t *);
4bf845090a25 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 660
diff changeset
44 sldb_node_t * xs_sldb_get(xs_sldb_t *, const gchar *);
4
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 #ifdef __cplusplus
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 }
4bb09e405eab Added new files for 0.8
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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 */