aboutsummaryrefslogtreecommitdiffstats
path: root/high-can-binding/high-viwi-binding-hat.hpp
diff options
context:
space:
mode:
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);