diff 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
line wrap: on
line diff
--- a/src/xs_length.h	Sun Dec 19 15:25:03 2004 +0000
+++ b/src/xs_length.h	Sun Dec 19 16:53:05 2004 +0000
@@ -20,13 +20,20 @@
 	struct _t_xs_sldb_node *pPrev, *pNext;
 } t_xs_sldb_node;
 
+typedef struct {
+	t_xs_sldb_node	*pNodes,
+			**ppIndex;
+	gint		n;
+} t_xs_sldb;
+
 
 /*
  * Functions
  */
-gint	xs_songlen_init(void);		/* Initialize songlength subsystem */
-void	xs_songlen_close(void);		/* Close/shutdown */
-t_xs_sldb_node *xs_songlen_get(gchar *);
+gint			xs_sldb_read(t_xs_sldb *, gchar *);
+gint			xs_sldb_index(t_xs_sldb *);
+void			xs_sldb_free(t_xs_sldb *);
+t_xs_sldb_node *	xs_sldb_get(t_xs_sldb *, gchar *);
 
 
 #ifdef __cplusplus