aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2007-08-19 19:38:47 +0000
committerQball Cow <qball@qballcow.nl>2007-08-19 19:38:47 +0000
commit6dc71a392896d8e1ad1dcec8dc445ab633de7089 (patch)
tree83886bfd3b2272f1c6bf5db5229b5fb437c7c5b6 /src/command.c
parent609263594c2e1aae7565f3d00cd509688e4566bd (diff)
downloadmpd-6dc71a392896d8e1ad1dcec8dc445ab633de7089.tar.gz
mpd-6dc71a392896d8e1ad1dcec8dc445ab633de7089.tar.xz
mpd-6dc71a392896d8e1ad1dcec8dc445ab633de7089.zip
Custom patch to add a playlist versioning number, needs testing
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6765 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 83a8d3a2d..85f2616af 100644
--- a/src/command.c
+++ b/src/command.c
@@ -110,7 +110,8 @@
#define COMMAND_STATUS_REPEAT "repeat"
#define COMMAND_STATUS_RANDOM "random"
#define COMMAND_STATUS_PLAYLIST "playlist"
-#define COMMAND_STATUS_PLAYLIST_QUEUE "playlistqueue"
+#define COMMAND_STATUS_PLAYLIST_QUEUE "playlistqueue"
+#define COMMAND_STATUS_STORED_PLAYLIST "storedplaylist"
#define COMMAND_STATUS_PLAYLIST_LENGTH "playlistlength"
#define COMMAND_STATUS_SONG "song"
#define COMMAND_STATUS_SONGID "songid"
@@ -284,6 +285,8 @@ static int commandStatus(int fd, int *permission, int argc, char *argv[])
getPlaylistVersion());
fdprintf(fd, "%s: %li\n", COMMAND_STATUS_PLAYLIST_QUEUE,
getPlaylistQueueVersion());
+ fdprintf(fd, "%s: %li\n", COMMAND_STATUS_STORED_PLAYLIST,
+ getStoredPlaylistVersion());
fdprintf(fd, "%s: %i\n", COMMAND_STATUS_PLAYLIST_LENGTH,
getPlaylistLength());
fdprintf(fd, "%s: %i\n", COMMAND_STATUS_CROSSFADE,