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

Partition: add method DatabaseModified()

parent c7bbfef1
......@@ -31,7 +31,7 @@ Instance::DeleteSong(const Song &song)
void
Instance::DatabaseModified()
{
partition->playlist.FullIncrementVersions();
partition->DatabaseModified();
idle_add(IDLE_DATABASE);
}
......
......@@ -22,6 +22,12 @@
#include "Song.hxx"
void
Partition::DatabaseModified()
{
playlist.FullIncrementVersions();
}
void
Partition::TagModified()
{
Song *song = pc.LockReadTaggedSong();
......
......@@ -167,6 +167,12 @@ struct Partition {
}
/**
* The database has been modified. Propagate the change to
* all subsystems.
*/
void DatabaseModified();
/**
* A tag in the play queue has been modified by the player
* thread. Propagate the change to all subsystems.
*/
......
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