comparison src/xs_length.h @ 4:4bb09e405eab

Added new files for 0.8
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Jun 2003 11:03:04 +0000
parents
children f5d82424b0ed
comparison
equal deleted inserted replaced
3:279b1e12df2b 4:4bb09e405eab
1 #ifndef XS_LENGTH_H
2 #define XS_LENGTH_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8
9 /*
10 * Defines and typedefs
11 */
12 #define XS_HASH_LENGTH (16)
13 #define XS_HASH_LENGTH_CH (XS_HASH_LENGTH * 2)
14
15 typedef guint8 t_xs_hash[XS_HASH_LENGTH];
16
17 typedef struct {
18 t_xs_hash hashcode; /* 128-bit MD5 hash-digest */
19 gint nlengths; /* Number of lengths */
20 long int lengths[XMMS_SID_STIL_MAXENTRY];
21 /* Lengths in seconds */
22 } t_xs_dbentry;
23
24
25 /*
26 * Functions
27 */
28 gint32 xs_get_length(gchar *, gint);
29
30
31 #ifdef __cplusplus
32 }
33 #endif
34 #endif /* XS_LENGTH_H */