view src/sid/xs_length.h @ 906:16e51fb5908e trunk

[svn] - aosd: beta4, ghosd source was rewritten to support argb visual (x composite extension) as an option, this allows to have real transparency in the OSD
author giacomo
date Sat, 31 Mar 2007 17:44:23 -0700
parents 6c3c7b841382
children 251336bee085
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

/* Types
 */
typedef struct _t_xs_sldb_node {
	t_xs_md5hash	md5Hash;	/* 128-bit MD5 hash-digest */
	gint		nLengths;	/* Number of lengths */
	gint		*sLengths;	/* Lengths in seconds */
	struct _t_xs_sldb_node *pPrev, *pNext;
} t_xs_sldb_node;


typedef struct {
	t_xs_sldb_node	*pNodes,
			**ppIndex;
	size_t		n;
} t_xs_sldb;


/* Functions
 */
gint			xs_sldb_read(t_xs_sldb *, const 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 *, const gchar *);

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