aboutsummaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 22:42:05 +0100
committerMax Kellermann <max@duempel.org>2013-01-05 02:43:00 +0100
commitd536944beb783ec098aa6215fc94d8e60cfd310d (patch)
treeb86702e5d0142cfe3c8bb22a9a4f8ea2034cb51b /src/Listen.cxx
parent1a8ef3cdab39234e91fe9d91dad2ae004e4537dc (diff)
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.
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 8741da9c..3ea9bae9 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -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);
}