aboutsummaryrefslogtreecommitdiffstats
path: root/src/Instance.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Instance.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx
index a0dfd1b94..160e713b0 100644
--- a/src/Instance.hxx
+++ b/src/Instance.hxx
@@ -21,17 +21,18 @@
#define MPD_INSTANCE_HXX
#include "check.h"
+#include "DatabaseListener.hxx"
+#include "Compiler.h"
class ClientList;
struct Partition;
-struct Song;
-struct Instance {
+struct Instance final : public DatabaseListener {
ClientList *client_list;
Partition *partition;
- void DeleteSong(const Song &song);
+ void DeleteSong(const char *uri);
/**
* The database has been modified. Propagate the change to
@@ -49,6 +50,9 @@ struct Instance {
* Synchronize the player with the play queue.
*/
void SyncWithPlayer();
+
+private:
+ virtual void OnDatabaseModified();
};
#endif