From 997541e1eb05545f6653e3673f37bcb023b76b58 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 10 Mar 2004 10:00:47 +0000 Subject: [PATCH] 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 --- src/command.c | 1 + src/playlist.h | 2 ++ 2 files changed, 3 insertions(+) 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