view src/sid/xs_stil.h @ 914:d12d27887bf0 trunk

[svn] - statusicon: smarter show/hide on statusicon click (plugin will now correctly handle the situation where the player window is always hidden and the playlist window should be shown/hidden)
author giacomo
date Wed, 04 Apr 2007 11:49:12 -0700
parents 6c3c7b841382
children 251336bee085
line wrap: on
line source

#ifndef XS_STIL_H
#define XS_STIL_H

#include "xmms-sid.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Types
 */
typedef struct {
	gchar	*pName,
		*pAuthor,
		*pTitle,
		*pInfo;
} t_xs_stil_subnode;


typedef struct _t_xs_stil_node {
	gchar			*pcFilename;
	gint			nsubTunes;
	t_xs_stil_subnode	**subTunes;
	
	struct _t_xs_stil_node	*pPrev, *pNext;
} t_xs_stil_node;


typedef struct {
	t_xs_stil_node	*pNodes,
			**ppIndex;
	size_t		n;
} t_xs_stildb;


/* Functions
 */
gint			xs_stildb_read(t_xs_stildb *, gchar *);
gint			xs_stildb_index(t_xs_stildb *);
void			xs_stildb_free(t_xs_stildb *);
t_xs_stil_node *	xs_stildb_get_node(t_xs_stildb *, gchar *);

#ifdef __cplusplus
}
#endif
#endif /* XS_STIL_H */