summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-22 00:26:20 +0200
committerMax Kellermann <max@duempel.org>2013-10-22 00:59:55 +0200
commit4de3b6dc801fdb0d30809348a13565652a9938c1 (patch)
tree7e9cb4de10c017a64d799ab15a87420017f62e34 /src
parentc7bbfef19ad6d800ea1434d4175876b856f716e9 (diff)
Partition: add method DatabaseModified()
Diffstat (limited to 'src')
-rw-r--r--src/Instance.cxx2
-rw-r--r--src/Partition.cxx6
-rw-r--r--src/Partition.hxx6
3 files changed, 13 insertions, 1 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index eeae85b44..daad94212 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -31,7 +31,7 @@ Instance::DeleteSong(const Song &song)
void
Instance::DatabaseModified()
{
- partition->playlist.FullIncrementVersions();
+ partition->DatabaseModified();
idle_add(IDLE_DATABASE);
}
diff --git a/src/Partition.cxx b/src/Partition.cxx
index 3619ff7f0..0ad1692a6 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -22,6 +22,12 @@
#include "Song.hxx"
void
+Partition::DatabaseModified()
+{
+ playlist.FullIncrementVersions();
+}
+
+void
Partition::TagModified()
{
Song *song = pc.LockReadTaggedSong();
diff --git a/src/Partition.hxx b/src/Partition.hxx
index 1d326b147..dbc79b4ba 100644
--- a/src/Partition.hxx
+++ b/src/Partition.hxx
@@ -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.
*/