Partition: disable DatabaseModified() if not ENABLE_DATABASE
This commit is contained in:
parent
e545679265
commit
1769ae54e4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user