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 "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx" #include "output/MultipleOutputs.hxx"
#ifdef ENABLE_DATABASE
void void
Partition::DatabaseModified() Partition::DatabaseModified()
{ {
playlist.DatabaseModified(); playlist.DatabaseModified();
} }
#endif
void void
Partition::TagModified() Partition::TagModified()
{ {

View File

@ -173,11 +173,13 @@ struct Partition {
playlist.SetConsume(new_value); playlist.SetConsume(new_value);
} }
#ifdef ENABLE_DATABASE
/** /**
* The database has been modified. Propagate the change to * The database has been modified. Propagate the change to
* all subsystems. * all subsystems.
*/ */
void DatabaseModified(); void DatabaseModified();
#endif
/** /**
* A tag in the play queue has been modified by the player * A tag in the play queue has been modified by the player

View File

@ -137,10 +137,12 @@ public:
*/ */
void TagModified(DetachedSong &&song); void TagModified(DetachedSong &&song);
#ifdef ENABLE_DATABASE
/** /**
* The database has been modified. Pull all updates. * The database has been modified. Pull all updates.
*/ */
void DatabaseModified(); void DatabaseModified();
#endif
PlaylistResult AppendSong(PlayerControl &pc, PlaylistResult AppendSong(PlayerControl &pc,
DetachedSong &&song, DetachedSong &&song,