Commit 4bef0a1e authored by Max Kellermann's avatar Max Kellermann

Playlist: move playlist_increment_version_all() into the class

parent 3e5f09be
......@@ -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);
}
......
......@@ -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
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment