view src/scrobbler/queue.h @ 194:5e8cf0611af3 trunk

[svn] - faster line calculation algorithm (only calculates 256 or 128 points of the waveform) - update rush preset (DON'T use lines here.)
author nenolod
date Fri, 03 Nov 2006 03:10:26 -0800
parents 3da1b8942b8b
children
line wrap: on
line source

#ifndef QUEUE_H
#define QUEUE_H 1

#include "audacious/titlestring.h"

#define I_ARTIST(i) i->artist
#define I_TITLE(i) i->title
#define I_TIME(i) i->utctime
#define I_LEN(i) i->len
#define I_MB(i) i->mb
#define I_ALBUM(i) i->album

typedef struct {
	char *artist,
		*title,
		*mb,
		*album,
		*utctime,
		len[16];
	int numtries;
	void *next;
} item_t;
void q_put(TitleInput *, int);
item_t *q_put2(char *, char *, char *, char *, char *, char *);
item_t *q_peek(void);
item_t *q_peekall(int);
int q_get(void);
void q_free(void);
int q_len(void);
#endif