comparison src/xs_length.h @ 392:b09d74eb71e6

Working on getting STIL and SLDB using completely dynamically allocated structures. Indentation cleanups, etc.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 31 May 2006 10:02:00 +0000
parents 19c89f9ca2cc
children f997b79a7251
comparison
equal deleted inserted replaced
391:3cc7455360ad 392:b09d74eb71e6
1 #ifndef XS_LENGTH_H 1 #ifndef _XS_LENGTH_H
2 #define XS_LENGTH_H 2 #define _XS_LENGTH_H
3 3
4 #include "xmms-sid.h" 4 #include "xmms-sid.h"
5 #include "xs_md5.h" 5 #include "xs_md5.h"
6 6
7 #ifdef __cplusplus 7 #ifdef __cplusplus
12 * Defines and typedefs 12 * Defines and typedefs
13 */ 13 */
14 typedef struct _t_xs_sldb_node { 14 typedef struct _t_xs_sldb_node {
15 t_xs_md5hash md5Hash; /* 128-bit MD5 hash-digest */ 15 t_xs_md5hash md5Hash; /* 128-bit MD5 hash-digest */
16 gint nLengths; /* Number of lengths */ 16 gint nLengths; /* Number of lengths */
17 gint32 sLengths[XS_STIL_MAXENTRY+1]; 17 gint *sLengths; /* Lengths in seconds */
18 /* Lengths in seconds */
19
20 struct _t_xs_sldb_node *pPrev, *pNext; 18 struct _t_xs_sldb_node *pPrev, *pNext;
21 } t_xs_sldb_node; 19 } t_xs_sldb_node;
20
22 21
23 typedef struct { 22 typedef struct {
24 t_xs_sldb_node *pNodes, 23 t_xs_sldb_node *pNodes,
25 **ppIndex; 24 **ppIndex;
26 gint n; 25 gint n;
41 t_xs_sldb_node * xs_songlen_get(gchar *); 40 t_xs_sldb_node * xs_songlen_get(gchar *);
42 41
43 #ifdef __cplusplus 42 #ifdef __cplusplus
44 } 43 }
45 #endif 44 #endif
46 #endif /* XS_LENGTH_H */ 45 #endif /* _XS_LENGTH_H */