summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-03-23 15:59:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-03-23 15:59:44 +0100
commit279d2339957fe04c6195ea91b3af2a1f97bad449 (patch)
tree806fcd9edbdb1173e954048940b4f794c34b6851
parentaff05b97a65bc345ba5dd38252e6957d08cae885 (diff)
Split up protocol into task/observe. For now observe sends initial state and task handles events.
-rw-r--r--src/observe_proto.cc46
-rw-r--r--src/observe_proto.h30
2 files changed, 76 insertions, 0 deletions
diff --git a/src/observe_proto.cc b/src/observe_proto.cc
new file mode 100644
index 0000000..8ea6104
--- /dev/null
+++ b/src/observe_proto.cc
@@ -0,0 +1,46 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set et sw=2 ts=2: */
+/***************************************************************************
+ * observe_proto.cc
+ *
+ * Fri Mar 23 15:29:13 CET 2012
+ * Copyright 2012 Bent Bisballe Nyeng
+ * deva@aasimon.org
+ ****************************************************************************/
+
+/*
+ * This file is part of Munia.
+ *
+ * Munia is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Munia is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Munia; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+#include "observe_proto.h"
+
+#ifdef TEST_OBSERVE_PROTO
+//Additional dependency files
+//deps:
+//Required cflags (autoconf vars may be used)
+//cflags:
+//Required link options (autoconf vars may be used)
+//libs:
+#include "test.h"
+
+TEST_BEGIN;
+
+// TODO: Put some testcode here (see test.h for usable macros).
+TEST_TRUE(false, "No tests yet!");
+
+TEST_END;
+
+#endif/*TEST_OBSERVE_PROTO*/
diff --git a/src/observe_proto.h b/src/observe_proto.h
new file mode 100644
index 0000000..fea9ebd
--- /dev/null
+++ b/src/observe_proto.h
@@ -0,0 +1,30 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set et sw=2 ts=2: */
+/***************************************************************************
+ * observe_proto.h
+ *
+ * Fri Mar 23 15:29:13 CET 2012
+ * Copyright 2012 Bent Bisballe Nyeng
+ * deva@aasimon.org
+ ****************************************************************************/
+
+/*
+ * This file is part of Munia.
+ *
+ * Munia is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Munia is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Munia; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+#ifndef __MUNIA_OBSERVE_PROTO_H__
+#define __MUNIA_OBSERVE_PROTO_H__
+#endif/*__MUNIA_OBSERVE_PROTO_H__*/