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.
This commit is contained in:
Max Kellermann
2013-01-04 22:42:05 +01:00
parent 1a8ef3cdab
commit d536944beb
11 changed files with 103 additions and 60 deletions

View File

@@ -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);