aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateRemove.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/UpdateRemove.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 '')
-rw-r--r--src/UpdateRemove.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx
index acf8bf46c..fa4c8e764 100644
--- a/src/UpdateRemove.cxx
+++ b/src/UpdateRemove.cxx
@@ -20,13 +20,13 @@
#include "config.h" /* must be first for large file support */
#include "UpdateRemove.hxx"
#include "Playlist.hxx"
-#include "Partition.hxx"
#include "GlobalEvents.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "song.h"
#include "Main.hxx"
+#include "Instance.hxx"
#ifdef ENABLE_SQLITE
#include "StickerDatabase.hxx"
@@ -63,7 +63,7 @@ song_remove_event(void)
sticker_song_delete(removed_song);
#endif
- global_partition->DeleteSong(*removed_song);
+ instance->DeleteSong(*removed_song);
/* clear "removed_song" and send signal to update thread */
remove_mutex.lock();