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/Client.hxx | |
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 '')
-rw-r--r-- | src/Client.hxx | 6 |
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); |