annotate src/sid/xs_length.h @ 3195:16d4308fb36e

alsa-ng: Set type hint on prefs window, and don't use deprecated GTK funcs.
author John Lindgren <john.lindgren@tds.net>
date Thu, 09 Jul 2009 11:03:32 -0400
parents 3134a0987162
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
1 #ifndef XS_LENGTH_H
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
2 #define XS_LENGTH_H
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
3
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
4 #include "xmms-sid.h"
2600
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
5 #ifdef AUDACIOUS_PLUGIN
2971
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2600
diff changeset
6 #include <audlegacy/audutil.h>
2600
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
7 #define XS_MD5HASH_LENGTH AUD_MD5HASH_LENGTH
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
8 #define XS_MD5HASH_LENGTH_CH AUD_MD5HASH_LENGTH_CH
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
9 #define xs_md5hash_t aud_md5hash_t
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
10 #define xs_md5state_t aud_md5state_t
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
11 #define xs_md5_init aud_md5_init
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
12 #define xs_md5_append aud_md5_append
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
13 #define xs_md5_finish aud_md5_finish
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
14 #else
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
15 #include "xs_md5.h"
2600
2541c1ba98a5 Use the md5 routines in libaudutil.
Matti Hamalainen <ccr@tnsp.org>
parents: 2593
diff changeset
16 #endif
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
17
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
18 #ifdef __cplusplus
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
19 extern "C" {
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
20 #endif
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
21
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
22 /* Types
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
23 */
2507
251336bee085 Cosmetic cleanups, synchronized from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 735
diff changeset
24 typedef struct _sldb_node_t {
2509
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
25 xs_md5hash_t md5Hash; /* 128-bit MD5 hash-digest */
2593
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
26 gint nlengths; /* Number of lengths */
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
27 gint *lengths; /* Lengths in seconds */
2509
1223e8510d8a Change tabs to 4 spaces, everywhere.
Matti Hamalainen <ccr@tnsp.org>
parents: 2507
diff changeset
28 struct _sldb_node_t *prev, *next;
2507
251336bee085 Cosmetic cleanups, synchronized from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 735
diff changeset
29 } sldb_node_t;
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
30
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
31
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
32 typedef struct {
2593
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
33 sldb_node_t *nodes,
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
34 **pindex;
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
35 size_t n;
2507
251336bee085 Cosmetic cleanups, synchronized from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 735
diff changeset
36 } xs_sldb_t;
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
37
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
38
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
39 /* Functions
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
40 */
2593
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
41 gint xs_sldb_read(xs_sldb_t *, const gchar *);
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
42 gint xs_sldb_index(xs_sldb_t *);
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
43 void xs_sldb_free(xs_sldb_t *);
f4dce14ed238 Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 2509
diff changeset
44 sldb_node_t * xs_sldb_get(xs_sldb_t *, const gchar *);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
45
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
46 #ifdef __cplusplus
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
47 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
48 #endif
735
6c3c7b841382 [svn] - sync audacious-sid with latest xmms-sid, from Matti Hamalainen (ccr).
nenolod
parents: 12
diff changeset
49 #endif /* XS_LENGTH_H */