aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-22 23:40:11 +0100
committerMax Kellermann <max@duempel.org>2009-01-22 23:40:11 +0100
commitf78cddb407dbd8c3f5a1860ca5052d6a5984b734 (patch)
treef859388102e3fabea31ae5c3567fb04b5188d7f4 /src/playlist.h
parentd5dcd0ed668781b311375715f761f67c07442291 (diff)
downloadmpd-f78cddb407dbd8c3f5a1860ca5052d6a5984b734.tar.gz
mpd-f78cddb407dbd8c3f5a1860ca5052d6a5984b734.tar.xz
mpd-f78cddb407dbd8c3f5a1860ca5052d6a5984b734.zip
playlist: moved code to queue.c
Attempt to untie the playlist.c knot: moved the playlist storage code to queue.c, struct queue.
Diffstat (limited to '')
-rw-r--r--src/playlist.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/playlist.h b/src/playlist.h
index a2531963b..443f4222d 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -20,6 +20,7 @@
#define MPD_PLAYLIST_H
#include "locate.h"
+#include "queue.h"
#include <stdbool.h>
#include <stdio.h>
@@ -43,18 +44,10 @@ enum playlist_result {
};
typedef struct _Playlist {
- struct song **songs;
- /* holds version a song was modified on */
- uint32_t *songMod;
- unsigned *order;
- unsigned *positionToId;
- int *idToPosition;
- unsigned length;
+ struct queue queue;
+
int current;
int queued;
- bool repeat;
- bool random;
- uint32_t version;
} Playlist;
extern bool playlist_saveAbsolutePaths;