Partition: disable DatabaseModified() if not ENABLE_DATABASE

This commit is contained in:
Max Kellermann 2014-02-01 00:44:41 +01:00
parent e545679265
commit 1769ae54e4
3 changed files with 8 additions and 0 deletions

View File

@ -22,12 +22,16 @@
#include "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx"
#ifdef ENABLE_DATABASE
void
Partition::DatabaseModified()
{
playlist.DatabaseModified();
}
#endif
void
Partition::TagModified()
{

View File

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

View File

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