summaryrefslogtreecommitdiffstats
path: root/high-can-binding/high-viwi-binding-hat.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-01-04 11:31:03 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-01-04 11:31:03 +0100
commit42cd0f2e981a53faf45d0eb45a419b5e570afb5c (patch)
treefb7e9806f33f81831cbc6d05af19334f9073e4f2 /high-can-binding/high-viwi-binding-hat.hpp
parent4f1c7e68e5c73f6dcb54b6495b9e3de8456f0376 (diff)
Remove lua dependency and rename to high-viwi
And upgrade submodules Change-Id: I19dd52da56280afa0725f0a9a96efb20ad02812e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'high-can-binding/high-viwi-binding-hat.hpp')
-rw-r--r--high-can-binding/high-viwi-binding-hat.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/high-can-binding/high-viwi-binding-hat.hpp b/high-can-binding/high-viwi-binding-hat.hpp
new file mode 100644
index 0000000..28e8306
--- /dev/null
+++ b/high-can-binding/high-viwi-binding-hat.hpp
@@ -0,0 +1,15 @@
+#pragma once
+#include <cstddef>
+#include <systemd/sd-event.h>
+extern "C"
+{
+ #define AFB_BINDING_VERSION 2
+ #include <afb/afb-binding.h>
+};
+
+ void onEvent(const char *event, struct json_object *object);
+ void subscribe(afb_req request);
+ void unsubscribe(afb_req request);
+ void get(afb_req request);
+ void initHigh();
+ int ticked(sd_event_source *source, uint64_t t, void *data);