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:
@@ -20,7 +20,7 @@
|
||||
#include "config.h"
|
||||
#include "Listen.hxx"
|
||||
#include "Main.hxx"
|
||||
#include "Playlist.hxx"
|
||||
#include "Partition.hxx"
|
||||
#include "Client.hxx"
|
||||
|
||||
extern "C" {
|
||||
@@ -47,7 +47,7 @@ static void
|
||||
listen_callback(int fd, const struct sockaddr *address,
|
||||
size_t address_length, int uid, G_GNUC_UNUSED void *ctx)
|
||||
{
|
||||
client_new(g_playlist, global_player_control,
|
||||
client_new(global_partition->playlist, &global_partition->pc,
|
||||
fd, address, address_length, uid);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user