aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Partition.cxx4
-rw-r--r--src/Partition.hxx2
-rw-r--r--src/Playlist.hxx2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx
index 71ded4309..f12f931be 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -22,12 +22,16 @@
#include "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx"
+#ifdef ENABLE_DATABASE
+
void
Partition::DatabaseModified()
{
playlist.DatabaseModified();
}
+#endif
+
void
Partition::TagModified()
{
diff --git a/src/Partition.hxx b/src/Partition.hxx
index 5e2469504..1faf7c9a2 100644
--- a/src/Partition.hxx
+++ b/src/Partition.hxx
@@ -173,11 +173,13 @@ struct Partition {
playlist.SetConsume(new_value);
}
+#ifdef ENABLE_DATABASE
/**
* The database has been modified. Propagate the change to
* all subsystems.
*/
void DatabaseModified();
+#endif
/**
* A tag in the play queue has been modified by the player
diff --git a/src/Playlist.hxx b/src/Playlist.hxx
index db7889227..41811fe59 100644
--- a/src/Playlist.hxx
+++ b/src/Playlist.hxx
@@ -137,10 +137,12 @@ public:
*/
void TagModified(DetachedSong &&song);
+#ifdef ENABLE_DATABASE
/**
* The database has been modified. Pull all updates.
*/
void DatabaseModified();
+#endif
PlaylistResult AppendSong(PlayerControl &pc,
DetachedSong &&song,