comparison src/xs_length.h @ 227:92bad4c7b998

Improved modularization of STIL and song-length database subsystems.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 19 Dec 2004 16:53:05 +0000
parents 575686094eb1
children 608f31f6c095
comparison
equal deleted inserted replaced
226:858c09f59011 227:92bad4c7b998
18 /* Lengths in seconds */ 18 /* Lengths in seconds */
19 19
20 struct _t_xs_sldb_node *pPrev, *pNext; 20 struct _t_xs_sldb_node *pPrev, *pNext;
21 } t_xs_sldb_node; 21 } t_xs_sldb_node;
22 22
23 typedef struct {
24 t_xs_sldb_node *pNodes,
25 **ppIndex;
26 gint n;
27 } t_xs_sldb;
28
23 29
24 /* 30 /*
25 * Functions 31 * Functions
26 */ 32 */
27 gint xs_songlen_init(void); /* Initialize songlength subsystem */ 33 gint xs_sldb_read(t_xs_sldb *, gchar *);
28 void xs_songlen_close(void); /* Close/shutdown */ 34 gint xs_sldb_index(t_xs_sldb *);
29 t_xs_sldb_node *xs_songlen_get(gchar *); 35 void xs_sldb_free(t_xs_sldb *);
36 t_xs_sldb_node * xs_sldb_get(t_xs_sldb *, gchar *);
30 37
31 38
32 #ifdef __cplusplus 39 #ifdef __cplusplus
33 } 40 }
34 #endif 41 #endif