aboutsummaryrefslogtreecommitdiff
path: root/src/ClientInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 23:32:05 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 23:59:45 +0100
commitfc1f0eeda75f5b3c7d5da984045a44ab8fff52de (patch)
treecfcb257ef63707f171682249deb1bc0e2987d90c /src/ClientInternal.hxx
parent3d5c09480489c5d3a0e4e22a208a7362f3a3849e (diff)
Client: add constructor and destructor
Move code from client_new() and client_close().
Diffstat (limited to 'src/ClientInternal.hxx')
-rw-r--r--src/ClientInternal.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx
index 5ad24068..9cbd4a50 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();