Commit 1769ae54 authored by Max Kellermann's avatar Max Kellermann

Partition: disable DatabaseModified() if not ENABLE_DATABASE

parent e5456792
......@@ -22,12 +22,16 @@
#include "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx"
#ifdef ENABLE_DATABASE
void
Partition::DatabaseModified()
{
playlist.DatabaseModified();
}
#endif
void
Partition::TagModified()
{
......
......@@ -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
......
......@@ -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,
......
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