From 279d2339957fe04c6195ea91b3af2a1f97bad449 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 23 Mar 2012 15:59:44 +0100 Subject: Split up protocol into task/observe. For now observe sends initial state and task handles events. --- src/observe_proto.cc | 46 ++++++++++++++++++++++++++++++++++++++++++++++ src/observe_proto.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 src/observe_proto.cc create mode 100644 src/observe_proto.h 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__*/ -- cgit v1.2.3