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/ClientInternal.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 'src/ClientInternal.hxx')
-rw-r--r-- | src/ClientInternal.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx index 5e41333e4..6f3035671 100644 --- a/src/ClientInternal.hxx +++ b/src/ClientInternal.hxx @@ -46,6 +46,7 @@ struct deferred_buffer { class Client { public: + struct playlist &playlist; struct player_control *player_control; GIOChannel *channel; @@ -99,7 +100,8 @@ public: */ std::list<ClientMessage> messages; - Client(struct player_control *player_control, + Client(struct playlist &playlist, + struct player_control *player_control, int fd, int uid, int num); ~Client(); |