diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-10 10:00:47 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-10 10:00:47 +0000 |
commit | 997541e1eb05545f6653e3673f37bcb023b76b58 (patch) | |
tree | 243d113fc07c149d8dc8d0abfdcc2b3643d06fa2 /src | |
parent | 68dc3517a63ae26bdd34d2ebcb9c48d5fe099714 (diff) | |
download | mpd-997541e1eb05545f6653e3673f37bcb023b76b58.tar.gz mpd-997541e1eb05545f6653e3673f37bcb023b76b58.tar.xz mpd-997541e1eb05545f6653e3673f37bcb023b76b58.zip |
increment playlist version on update, so clients know to update
git-svn-id: https://svn.musicpd.org/mpd/trunk@240 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/command.c | 1 | ||||
-rw-r--r-- | src/playlist.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c index 4e1d80dad..ae571a401 100644 --- a/src/command.c +++ b/src/command.c @@ -317,6 +317,7 @@ int handleSearch(FILE * fp, unsigned int * permission, int argArrayLength, int handleUpdate(FILE * fp, unsigned int * permission, int argArrayLength, char ** argArray) { + incrPlaylistVersion(); return updateMp3Directory(fp); } diff --git a/src/playlist.h b/src/playlist.h index 963cf6e35..8fdca8aed 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -93,4 +93,6 @@ void playPlaylistIfPlayerStopped(); int seekSongInPlaylist(FILE * fp, int song, float time); +void incrPlaylistVersion(); + #endif |