summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-02 15:16:07 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-02 15:16:07 +0100
commita63eff31169b700c1e3384f745eae5c26618ed45 (patch)
treec662e863e8261efb84d89ba9ac07341b11742246 /playlist.c
parent044a715c61f1b78cb569fd7711d794296b61b994 (diff)
few tweaks to playqueue
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index d75fd39c..5c6a2890 100644
--- a/playlist.c
+++ b/playlist.c
@@ -2038,6 +2038,7 @@ pl_playqueue_remove (playItem_t *it) {
}
}
}
+
int
pl_playqueue_test (playItem_t *it) {
for (int i = 0; i < playqueue_count; i++) {
@@ -2047,3 +2048,11 @@ pl_playqueue_test (playItem_t *it) {
}
return -1;
}
+
+playItem_t *
+pl_playqueue_getnext (void) {
+ if (playqueue_count > 0) {
+ return playqueue[0];
+ }
+ return NULL;
+}