summaryrefslogtreecommitdiff
path: root/src/connectionhandler.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-03-30 11:37:58 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-03-30 11:37:58 +0200
commit39e9508260335eb5cd817e9899a11cb011efdbed (patch)
treefe3b9c6dde89be8d77a324e802e67de5d1b32b88 /src/connectionhandler.cc
parent91dad205b83319e00ea8060ca5a63de07b126c8f (diff)
Add observe protocol and connection handler.
Diffstat (limited to 'src/connectionhandler.cc')
-rw-r--r--src/connectionhandler.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/connectionhandler.cc b/src/connectionhandler.cc
index 61738e2..6fdcd51 100644
--- a/src/connectionhandler.cc
+++ b/src/connectionhandler.cc
@@ -27,6 +27,9 @@
*/
#include "connectionhandler.h"
+// Global ConnectionHandler.
+ConnectionHandler connection_handler;
+
ConnectionHandler::ConnectionHandler()
{
}
@@ -77,7 +80,7 @@ std::set<clientid_t> ConnectionHandler::observerlist(TaskIdList tasks)
TEST_BEGIN;
-ConnectionHandler h;
+ConnectionHandler &h = connection_handler;
h.init((clientid_t)1);
h.observe((clientid_t)1, (taskid_t)1);