diff options
author | Max Kellermann <max@duempel.org> | 2013-01-09 22:21:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-09 22:21:16 +0100 |
commit | 4bef0a1e62602a79764d9867b7fcf11dd940edbe (patch) | |
tree | bbc3cf2bbe47d7488bf12e130ffdd1b8e7daced5 | |
parent | 3e5f09be0b38e0cc7e5eb8dd623c631b6ba45519 (diff) | |
download | mpd-4bef0a1e62602a79764d9867b7fcf11dd940edbe.tar.gz mpd-4bef0a1e62602a79764d9867b7fcf11dd940edbe.tar.xz mpd-4bef0a1e62602a79764d9867b7fcf11dd940edbe.zip |
Playlist: move playlist_increment_version_all() into the class
-rw-r--r-- | src/Playlist.cxx | 4 | ||||
-rw-r--r-- | src/Playlist.hxx | 5 | ||||
-rw-r--r-- | src/UpdateGlue.cxx | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/Playlist.cxx b/src/Playlist.cxx index a402471da..1977188da 100644 --- a/src/Playlist.cxx +++ b/src/Playlist.cxx @@ -31,9 +31,9 @@ #define G_LOG_DOMAIN "playlist" void -playlist_increment_version_all(struct playlist *playlist) +playlist::FullIncrementVersions() { - playlist->queue.ModifyAll(); + queue.ModifyAll(); idle_add(IDLE_PLAYLIST); } diff --git a/src/Playlist.hxx b/src/Playlist.hxx index eb048eb9a..5e64a8e81 100644 --- a/src/Playlist.hxx +++ b/src/Playlist.hxx @@ -131,6 +131,8 @@ public: void TagChanged(); + void FullIncrementVersions(); + enum playlist_result AppendSong(player_control &pc, struct song *song, unsigned *added_id=nullptr); @@ -254,7 +256,4 @@ public: void playlist_global_init(); -void -playlist_increment_version_all(struct playlist *playlist); - #endif diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx index d990ddfe6..984535bef 100644 --- a/src/UpdateGlue.cxx +++ b/src/UpdateGlue.cxx @@ -155,7 +155,7 @@ static void update_finished_event(void) if (modified) { /* send "idle" events */ - playlist_increment_version_all(&global_partition->playlist); + global_partition->playlist.FullIncrementVersions(); idle_add(IDLE_DATABASE); } |