diff options
author | Max Kellermann <max@duempel.org> | 2013-01-04 23:07:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-04 23:07:11 +0100 |
commit | fe8e77e556999fcaeaab1bb4a3555fd72529e2e0 (patch) | |
tree | 05e7c25e2d78dd9fe32bc5f403040b99cbb85797 /src/Listen.cxx | |
parent | b0833084a6e8f13faead5dfda92786a2b0f9e02e (diff) | |
download | mpd-fe8e77e556999fcaeaab1bb4a3555fd72529e2e0.tar.gz mpd-fe8e77e556999fcaeaab1bb4a3555fd72529e2e0.tar.xz mpd-fe8e77e556999fcaeaab1bb4a3555fd72529e2e0.zip |
Client: add "playlist" attribute
Reduce access to the global variable "g_playlist".
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r-- | src/Listen.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx index 954de08f1..8741da9c2 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 |