aboutsummaryrefslogtreecommitdiffstats
path: root/src/Client.hxx
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/Client.hxx
parentb0833084a6e8f13faead5dfda92786a2b0f9e02e (diff)
downloadmpd-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 '')
-rw-r--r--src/Client.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Client.hxx b/src/Client.hxx
index 622815a56..d442d89b2 100644
--- a/src/Client.hxx
+++ b/src/Client.hxx
@@ -27,14 +27,16 @@
#include <stdarg.h>
struct sockaddr;
+struct playlist;
struct player_control;
class Client;
void client_manager_init(void);
void client_manager_deinit(void);
-void client_new(struct player_control *player_control,
- int fd, const struct sockaddr *sa, size_t sa_length, int uid);
+void
+client_new(struct playlist &playlist, struct player_control *player_control,
+ int fd, const struct sockaddr *sa, size_t sa_length, int uid);
gcc_pure
bool client_is_expired(const Client *client);