aboutsummaryrefslogtreecommitdiffstats
path: root/src/Instance.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Instance.cxx30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index daad94212..16000afb3 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -21,16 +21,18 @@
#include "Instance.hxx"
#include "Partition.hxx"
#include "Idle.hxx"
+#include "Stats.hxx"
void
-Instance::DeleteSong(const Song &song)
+Instance::DeleteSong(const char *uri)
{
- partition->DeleteSong(song);
+ partition->DeleteSong(uri);
}
void
Instance::DatabaseModified()
{
+ stats_invalidate();
partition->DatabaseModified();
idle_add(IDLE_DATABASE);
}
@@ -46,3 +48,25 @@ Instance::SyncWithPlayer()
{
partition->SyncWithPlayer();
}
+
+void
+Instance::OnDatabaseModified()
+{
+ DatabaseModified();
+}
+
+#ifdef ENABLE_NEIGHBOR_PLUGINS
+
+void
+Instance::FoundNeighbor(gcc_unused const NeighborInfo &info)
+{
+ idle_add(IDLE_NEIGHBOR);
+}
+
+void
+Instance::LostNeighbor(gcc_unused const NeighborInfo &info)
+{
+ idle_add(IDLE_NEIGHBOR);
+}
+
+#endif