view src/xs_length.h @ 14:f5d82424b0ed

Made song-length database support FINALLY work!
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jun 2003 18:00:03 +0000
parents 4bb09e405eab
children ac2972a7ccd5
line wrap: on
line source

#ifndef XS_LENGTH_H
#define XS_LENGTH_H

#ifdef __cplusplus
extern "C" {
#endif

#include <glib.h>
#include "xs_md5.h"

/*
 * Defines and typedefs
 */
#define XS_STIL_MAXENTRY	(32)
typedef struct dbnode {
	t_xs_md5hash	md5Hash;	/* 128-bit MD5 hash-digest */
	gint		nLengths;	/* Number of lengths */
	gint32		sLengths[XS_STIL_MAXENTRY];	
					/* Lengths in seconds */

	struct dbnode *pNext;
} t_xs_dbentry;


/*
 * Functions
 */
gint	xs_songlen_init(void);	/* Initialize songlength subsystem */
gint	xs_songlen_close(void); /* Close/shutdown */

gint32	xs_songlen_get(gchar *, gint); /* Get length in seconds */


#ifdef __cplusplus
}
#endif
#endif /* XS_LENGTH_H */