diff options
author | Max Kellermann <max@duempel.org> | 2013-01-03 23:32:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 23:59:45 +0100 |
commit | fc1f0eeda75f5b3c7d5da984045a44ab8fff52de (patch) | |
tree | cfcb257ef63707f171682249deb1bc0e2987d90c /src/ClientInternal.hxx | |
parent | 3d5c09480489c5d3a0e4e22a208a7362f3a3849e (diff) | |
download | mpd-fc1f0eeda75f5b3c7d5da984045a44ab8fff52de.tar.gz mpd-fc1f0eeda75f5b3c7d5da984045a44ab8fff52de.tar.xz mpd-fc1f0eeda75f5b3c7d5da984045a44ab8fff52de.zip |
Client: add constructor and destructor
Move code from client_new() and client_close().
Diffstat (limited to '')
-rw-r--r-- | src/ClientInternal.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx index 5ad24068c..9cbd4a50a 100644 --- a/src/ClientInternal.hxx +++ b/src/ClientInternal.hxx @@ -99,6 +99,10 @@ public: */ std::deque<ClientMessage> messages; + Client(struct player_control *player_control, + int fd, int uid, int num); + ~Client(); + gcc_pure bool IsSubscribed(const char *channel_name) const { return subscriptions.find(channel_name) != subscriptions.end(); |