Fix: decoder_t class decodeSignal method signature
[apps/agl-service-can-low-level.git] / src / low-can-binding.hpp
index 20dc5dc..5c43ded 100644 (file)
  
 #pragma once
 
+#include <map>
+#include <queue>
+#include <vector>
+#include <string>
+#include <memory>
+#include <thread>
+#include <fcntl.h>
+#include <errno.h>
+#include <unistd.h>
+#include <net/if.h>
+#include <functional>
+#include <sys/ioctl.h>
+#include <linux/can.h>
+#include <openxc.pb.h>
+#include <sys/timeb.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <json-c/json.h>
+#include <linux/can/raw.h>
+#include <systemd/sd-event.h>
+
+#include "timer.hpp"
+#include "openxc.pb.h"
+#include "can-utils.hpp"
 #include "can-signals.hpp"
+#include "can-decoder.hpp"
+#include "openxc-utils.hpp"
+
+#define MESSAGE_SET_ID 0
+
+/*
+ *     Interface between the daemon and the binding
+ */
+static const struct afb_binding_interface *interface;
 
 extern "C"
 {
@@ -55,9 +88,10 @@ extern "C"
        * @return Exit code, zero if success.
        */
        int afbBindingV1ServiceInit(struct afb_service service);
-}
+};
 
-/*
- *     Interface between the daemon and the binding
+/** Can signal event map making access to afb_event
+ * external to openxc existing structure.
  */
-static const struct afb_binding_interface *interface;
\ No newline at end of file
+static std::map<std::string, struct afb_event> subscribed_signals;
+static std::map<std::string, struct afb_event>::iterator subscribed_signals_i;