summaryrefslogtreecommitdiff
path: root/src/Instance.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-11 01:01:54 +0100
committerMax Kellermann <max@duempel.org>2014-01-11 01:01:54 +0100
commit114df1f137d5a32cdde64d43712fb602c2f93ebb (patch)
treeb0f1b51cfed7ef50b1e98a241dcfd8d8c17a2791 /src/Instance.hxx
parent00adf7ff173afbe7fe13734a27d6ee19096ce640 (diff)
DatabasePlugin: add interface DatabaseListener
Allow database plugins to announce that they have been modified.
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r--src/Instance.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx
index 45b1e44f1..160e713b0 100644
--- a/src/Instance.hxx
+++ b/src/Instance.hxx
@@ -21,11 +21,13 @@
#define MPD_INSTANCE_HXX
#include "check.h"
+#include "DatabaseListener.hxx"
+#include "Compiler.h"
class ClientList;
struct Partition;
-struct Instance {
+struct Instance final : public DatabaseListener {
ClientList *client_list;
Partition *partition;
@@ -48,6 +50,9 @@ struct Instance {
* Synchronize the player with the play queue.
*/
void SyncWithPlayer();
+
+private:
+ virtual void OnDatabaseModified();
};
#endif