Playlist: move playlist_increment_version_all() into the class

This commit is contained in:
Max Kellermann 2013-01-09 22:21:16 +01:00
parent 3e5f09be0b
commit 4bef0a1e62
3 changed files with 5 additions and 6 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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);
}