aboutsummaryrefslogtreecommitdiff
path: root/src/ClientInternal.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/ClientInternal.hxx
parentb0833084a6e8f13faead5dfda92786a2b0f9e02e (diff)
Client: add "playlist" attribute
Reduce access to the global variable "g_playlist".
Diffstat (limited to 'src/ClientInternal.hxx')
-rw-r--r--src/ClientInternal.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx
index 5e41333e..6f303567 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();