view src/xs_length.h @ 71:2b32c75729ce

Started modularizing, separated sidplay1 things into a "wrapper" module. Removed non-generic stuff from xmms-sid.cc, removed C++ references and renamed to xmms-sid.c
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 10 Sep 2003 06:21:04 +0000
parents 0d1df20745dd
children 94497283affa
line wrap: on
line source

#ifndef XS_LENGTH_H
#define XS_LENGTH_H

#ifdef __cplusplus
extern "C" {
#endif

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

/*
 * 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];	
					/* Lengths in seconds */

	struct _t_xs_sldb_node *pNext;
} t_xs_sldb_node;


/*
 * Functions
 */
gint	xs_songlen_init(void);		/* Initialize songlength subsystem */
void	xs_songlen_close(void);		/* Close/shutdown */
gint32	xs_songlen_get(gchar *, gint);	/* Get length in seconds */


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