aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-17 22:58:33 +0200
committerMax Kellermann <max@duempel.org>2013-04-17 23:52:58 +0200
commitb2d3d15e978aef2566a1bdae435d71cb326dec4d (patch)
tree769550ce5e624915b9d3129793624583474604ba /src/UpdateGlue.cxx
parent08dfd263ba496b0c1f6ddbe9b3eefa9a5cea57a4 (diff)
downloadmpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.gz
mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.xz
mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.zip
Main: move global variables to struct Instance
More preparations for multi-player support.
Diffstat (limited to 'src/UpdateGlue.cxx')
-rw-r--r--src/UpdateGlue.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx
index e9906b84a..5c63efcda 100644
--- a/src/UpdateGlue.cxx
+++ b/src/UpdateGlue.cxx
@@ -32,7 +32,7 @@ extern "C" {
}
#include "Main.hxx"
-#include "Partition.hxx"
+#include "Instance.hxx"
#include "mpd_error.h"
#include <glib.h>
@@ -156,11 +156,9 @@ static void update_finished_event(void)
idle_add(IDLE_UPDATE);
- if (modified) {
+ if (modified)
/* send "idle" events */
- global_partition->playlist.FullIncrementVersions();
- idle_add(IDLE_DATABASE);
- }
+ instance->DatabaseModified();
path = update_queue_shift(&discard);
if (path != NULL) {