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