diff src/xs_stil.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_stil.h	Sun Dec 19 15:25:03 2004 +0000
+++ b/src/xs_stil.h	Sun Dec 19 16:53:05 2004 +0000
@@ -23,12 +23,20 @@
 } t_xs_stil_node;
 
 
+typedef struct {
+	t_xs_stil_node	*pNodes,
+			**ppIndex;
+	gint		n;
+} t_xs_stildb;
+
+
 /*
  * Functions
  */
-gint	xs_stil_init(void);		/* Initialize STIL subsystem */
-void	xs_stil_close(void);		/* Close/shutdown */
-t_xs_stil_node*	xs_stil_get(gchar *);	/* Get STIL information */
+gint			xs_stildb_read(t_xs_stildb *, gchar *);
+gint			xs_stildb_index(t_xs_stildb *);
+void			xs_stildb_free(t_xs_stildb *);
+t_xs_stil_node *	xs_stildb_get(t_xs_stildb *, gchar *, gchar *);
 
 
 #ifdef __cplusplus