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 @@ ...@@ -31,9 +31,9 @@
#define G_LOG_DOMAIN "playlist" #define G_LOG_DOMAIN "playlist"
void void
playlist_increment_version_all(struct playlist *playlist) playlist::FullIncrementVersions()
{ {
playlist->queue.ModifyAll(); queue.ModifyAll();
idle_add(IDLE_PLAYLIST); idle_add(IDLE_PLAYLIST);
} }
......
...@@ -131,6 +131,8 @@ public: ...@@ -131,6 +131,8 @@ public:
void TagChanged(); void TagChanged();
void FullIncrementVersions();
enum playlist_result AppendSong(player_control &pc, enum playlist_result AppendSong(player_control &pc,
struct song *song, struct song *song,
unsigned *added_id=nullptr); unsigned *added_id=nullptr);
...@@ -254,7 +256,4 @@ public: ...@@ -254,7 +256,4 @@ public:
void void
playlist_global_init(); playlist_global_init();
void
playlist_increment_version_all(struct playlist *playlist);
#endif #endif
...@@ -155,7 +155,7 @@ static void update_finished_event(void) ...@@ -155,7 +155,7 @@ static void update_finished_event(void)
if (modified) { if (modified) {
/* send "idle" events */ /* send "idle" events */
playlist_increment_version_all(&global_partition->playlist); global_partition->playlist.FullIncrementVersions();
idle_add(IDLE_DATABASE); 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