From d536944beb783ec098aa6215fc94d8e60cfd310d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 4 Jan 2013 22:42:05 +0100 Subject: Partition: new class, container for Playlist and PlayerControl This is the beginning of multi-player support. There will be support for multiple Partition objects in one MPD process. --- src/UpdateRemove.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/UpdateRemove.cxx') diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx index 814c803b..c1a0cd32 100644 --- a/src/UpdateRemove.cxx +++ b/src/UpdateRemove.cxx @@ -20,6 +20,7 @@ #include "config.h" /* must be first for large file support */ #include "UpdateRemove.hxx" #include "Playlist.hxx" +#include "Partition.hxx" extern "C" { #include "event_pipe.h" @@ -63,7 +64,9 @@ song_remove_event(void) sticker_song_delete(removed_song); #endif - playlist_delete_song(&g_playlist, global_player_control, removed_song); + playlist_delete_song(&global_partition->playlist, + &global_partition->pc, + removed_song); /* clear "removed_song" and send signal to update thread */ g_mutex_lock(remove_mutex); -- cgit v1.2.3