summaryrefslogtreecommitdiffstats
path: root/src/low-can-binding.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-21 13:21:59 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-22 12:15:09 +0100
commitdae58e000ef198f7fa09718c60d7a7f2250fc2ce (patch)
treef02fecdb5da402561207bf4a92c1526ecf1bf513 /src/low-can-binding.hpp
parentb157cc6c5942ed0dfae672d2d3e32e0d7c6cb2ad (diff)
Fix: force to pass a ref at threads launch
Change-Id: Ife4206d6f6dce6888157239cce56b0040e3d2cf4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/low-can-binding.hpp')
-rw-r--r--src/low-can-binding.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/low-can-binding.hpp b/src/low-can-binding.hpp
index a46da6a..5c43ded 100644
--- a/src/low-can-binding.hpp
+++ b/src/low-can-binding.hpp
@@ -39,7 +39,6 @@
#include <linux/can/raw.h>
#include <systemd/sd-event.h>
-#include "obd2.hpp"
#include "timer.hpp"
#include "openxc.pb.h"
#include "can-utils.hpp"
@@ -47,6 +46,8 @@
#include "can-decoder.hpp"
#include "openxc-utils.hpp"
+#define MESSAGE_SET_ID 0
+
/*
* Interface between the daemon and the binding
*/
@@ -87,4 +88,10 @@ extern "C"
* @return Exit code, zero if success.
*/
int afbBindingV1ServiceInit(struct afb_service service);
-}; \ No newline at end of file
+};
+
+/** Can signal event map making access to afb_event
+ * external to openxc existing structure.
+ */
+static std::map<std::string, struct afb_event> subscribed_signals;
+static std::map<std::string, struct afb_event>::iterator subscribed_signals_i;