view Plugins/Input/sid/xs_length.h @ 621:86c09efdc4e7 trunk

[svn] Build fixes for SID by NhJm.
author chainsaw
date Mon, 06 Feb 2006 16:24:20 -0800
parents 1b82a9932b60
children f9593a065464
line wrap: on
line source

#ifndef XS_LENGTH_H
#define XS_LENGTH_H

#include "xmms-sid.h"
#include "xs_md5.h"

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Defines and typedefs
 */
typedef struct _t_xs_sldb_node {
	t_xs_md5hash	md5Hash;	/* 128-bit MD5 hash-digest */
	gint		nLengths;	/* Number of lengths */
	gint32		sLengths[XS_STIL_MAXENTRY+1];
					/* Lengths in seconds */

	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_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 *);


gint			xs_songlen_init(void);
void			xs_songlen_close(void);
t_xs_sldb_node *	xs_songlen_get(gchar *);

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