view src/xs_length.h @ 214:575686094eb1

Portability fixes
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 15 Dec 2004 11:02:02 +0000
parents 94497283affa
children 92bad4c7b998
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];	
					/* Lengths in seconds */

	struct _t_xs_sldb_node *pPrev, *pNext;
} t_xs_sldb_node;


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


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