aboutsummaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 23:07:11 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 23:07:11 +0100
commitfe8e77e556999fcaeaab1bb4a3555fd72529e2e0 (patch)
tree05e7c25e2d78dd9fe32bc5f403040b99cbb85797 /src/Listen.cxx
parentb0833084a6e8f13faead5dfda92786a2b0f9e02e (diff)
Client: add "playlist" attribute
Reduce access to the global variable "g_playlist".
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 954de08f..8741da9c 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -20,6 +20,7 @@
#include "config.h"
#include "Listen.hxx"
#include "Main.hxx"
+#include "Playlist.hxx"
#include "Client.hxx"
extern "C" {
@@ -46,7 +47,8 @@ static void
listen_callback(int fd, const struct sockaddr *address,
size_t address_length, int uid, G_GNUC_UNUSED void *ctx)
{
- client_new(global_player_control, fd, address, address_length, uid);
+ client_new(g_playlist, global_player_control,
+ fd, address, address_length, uid);
}
static bool