diff Plugins/General/scrobbler/queue.h @ 688:cc1969408403 trunk

[svn] - add scrobbler support
author nenolod
date Sat, 25 Feb 2006 12:11:20 -0800
parents
children fc478bfe6fe6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/General/scrobbler/queue.h	Sat Feb 25 12:11:20 2006 -0800
@@ -0,0 +1,28 @@
+#ifndef QUEUE_H
+#define QUEUE_H 1
+
+#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(metatag_t *, 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