From 6dc71a392896d8e1ad1dcec8dc445ab633de7089 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sun, 19 Aug 2007 19:38:47 +0000 Subject: 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 --- src/command.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/command.c') 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, -- cgit v1.2.3