From 5416d00bcdf7e248a103de9fca017480e5746ea4 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sun, 23 Apr 2006 11:10:41 +0000 Subject: Adding of plchangesposid command, this is a stripped down version of the plchanges command, it only sends the pos and id of the changed command. Libmpd allready has support for it, and libmpdclient in libmpd too git-svn-id: https://svn.musicpd.org/mpd/trunk@4101 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index d122948e5..8eaac641d 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -458,6 +458,26 @@ int playlistChanges(FILE * fp, mpd_uint32 version) { return 0; } +int playlistChangesPosId(FILE * fp, mpd_uint32 version) { + int i; + + for(i=0; i playlist.version || + playlist.songMod[i] >= version || + playlist.songMod[i] == 0) + { + myfprintf(fp, "cpos: %i\n", i); + myfprintf(fp, "Id: %i\n", playlist.positionToId[i]); + } + } + + return 0; +} + + + + + int playlistInfo(FILE * fp, int song) { int i; int begin = 0; -- cgit v1.2.3