diff options
Diffstat (limited to '')
-rw-r--r-- | src/UpdateRemove.cxx (renamed from src/update_remove.c) | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/update_remove.c b/src/UpdateRemove.cxx index f443f5eb2..c1a0cd32b 100644 --- a/src/update_remove.c +++ b/src/UpdateRemove.cxx @@ -18,15 +18,20 @@ */ #include "config.h" /* must be first for large file support */ -#include "update_remove.h" +#include "UpdateRemove.hxx" +#include "Playlist.hxx" +#include "Partition.hxx" + +extern "C" { #include "event_pipe.h" +} + #include "song.h" -#include "playlist.h" -#include "main.h" +#include "Main.hxx" #ifdef ENABLE_SQLITE -#include "sticker.h" -#include "song_sticker.h" +#include "StickerDatabase.hxx" +#include "SongSticker.hxx" #endif #include <glib.h> @@ -59,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); |