chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new 'origin' field to queue entries. This records the origin of
[disorder]
/
server
/
server-queue.c
diff --git
a/server/server-queue.c
b/server/server-queue.c
index a1fa18109e204e2cf40bbbf8f10aa3d72097047e..c65bf6d7bf6dbc62187afd0d82f389285aae0ee3 100644
(file)
--- a/
server/server-queue.c
+++ b/
server/server-queue.c
@@
-18,11
+18,17
@@
#include "disorder-server.h"
/* the head of the queue is played next, so normally we add to the tail */
#include "disorder-server.h"
/* the head of the queue is played next, so normally we add to the tail */
-struct queue_entry qhead = { &qhead, &qhead, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+struct queue_entry qhead = {
+ .next = &qhead,
+ .prev = &qhead
+};
/* the head of the recent list is the oldest thing, the tail the most recently
* played */
/* the head of the recent list is the oldest thing, the tail the most recently
* played */
-struct queue_entry phead = { &phead, &phead, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+struct queue_entry phead = {
+ .next = &phead,
+ .prev = &phead
+};
long pcount;
long pcount;