comparison src/Input/sid/xs_length.h @ 0:13389e613d67 trunk

[svn] - initial import of audacious-plugins tree (lots to do)
author nenolod
date Mon, 18 Sep 2006 01:11:49 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13389e613d67
1 #ifndef _XS_LENGTH_H
2 #define _XS_LENGTH_H
3
4 #include "xmms-sid.h"
5 #include "xs_md5.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /*
12 * Defines and typedefs
13 */
14 typedef struct _t_xs_sldb_node {
15 t_xs_md5hash md5Hash; /* 128-bit MD5 hash-digest */
16 gint nLengths; /* Number of lengths */
17 gint *sLengths; /* Lengths in seconds */
18 struct _t_xs_sldb_node *pPrev, *pNext;
19 } t_xs_sldb_node;
20
21
22 typedef struct {
23 t_xs_sldb_node *pNodes,
24 **ppIndex;
25 gint n;
26 } t_xs_sldb;
27
28
29 /*
30 * Functions
31 */
32 gint xs_sldb_read(t_xs_sldb *, const gchar *);
33 gint xs_sldb_index(t_xs_sldb *);
34 void xs_sldb_free(t_xs_sldb *);
35 t_xs_sldb_node * xs_sldb_get(t_xs_sldb *, const gchar *);
36
37
38 gint xs_songlen_init(void);
39 void xs_songlen_close(void);
40 t_xs_sldb_node * xs_songlen_get(const gchar *);
41
42 #ifdef __cplusplus
43 }
44 #endif
45 #endif /* _XS_LENGTH_H */