view src/xs_length.h @ 4:4bb09e405eab

Added new files for 0.8
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Jun 2003 11:03:04 +0000
parents
children f5d82424b0ed
line wrap: on
line source

#ifndef XS_LENGTH_H
#define XS_LENGTH_H

#ifdef __cplusplus
extern "C" {
#endif


/*
 * Defines and typedefs
 */
#define XS_HASH_LENGTH		(16)
#define XS_HASH_LENGTH_CH	(XS_HASH_LENGTH * 2)

typedef guint8 t_xs_hash[XS_HASH_LENGTH];

typedef struct {
	t_xs_hash	hashcode;	/* 128-bit MD5 hash-digest */
	gint		nlengths;	/* Number of lengths */
	long int	lengths[XMMS_SID_STIL_MAXENTRY];	
					/* Lengths in seconds */
} t_xs_dbentry;


/*
 * Functions
 */
gint32	xs_get_length(gchar *, gint);


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