Mercurial > audlegacy
annotate Plugins/General/scrobbler/queue.h @ 1350:ca5d03c4b3f1 trunk
[svn] - extra sanity checking keeps the double-free away
author | nenolod |
---|---|
date | Wed, 28 Jun 2006 13:16:32 -0700 |
parents | fc478bfe6fe6 |
children |
rev | line source |
---|---|
688 | 1 #ifndef QUEUE_H |
2 #define QUEUE_H 1 | |
3 | |
1236
fc478bfe6fe6
[svn] - disconnect the scrobbler client from metatag logically
nenolod
parents:
688
diff
changeset
|
4 #include "libaudacious/titlestring.h" |
fc478bfe6fe6
[svn] - disconnect the scrobbler client from metatag logically
nenolod
parents:
688
diff
changeset
|
5 |
688 | 6 #define I_ARTIST(i) i->artist |
7 #define I_TITLE(i) i->title | |
8 #define I_TIME(i) i->utctime | |
9 #define I_LEN(i) i->len | |
10 #define I_MB(i) i->mb | |
11 #define I_ALBUM(i) i->album | |
12 | |
13 typedef struct { | |
14 char *artist, | |
15 *title, | |
16 *mb, | |
17 *album, | |
18 *utctime, | |
19 len[16]; | |
20 int numtries; | |
21 void *next; | |
22 } item_t; | |
1236
fc478bfe6fe6
[svn] - disconnect the scrobbler client from metatag logically
nenolod
parents:
688
diff
changeset
|
23 void q_put(TitleInput *, int); |
688 | 24 item_t *q_put2(char *, char *, char *, char *, char *, char *); |
25 item_t *q_peek(void); | |
26 item_t *q_peekall(int); | |
27 int q_get(void); | |
28 void q_free(void); | |
29 int q_len(void); | |
30 #endif |