summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer-binding.hpp
diff options
context:
space:
mode:
authorForlot Romain [IoT.bzh] <claneys@iot.bzh>2017-09-04 23:37:22 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 10:59:55 +0100
commit19bc13783a7451c81848ea132614a8df11c7740a (patch)
treeb61995b1af0914559f6de6461bda3dd76f2e724c /signal-composer-binding/signal-composer-binding.hpp
parent29168eb150eae139685c40c0bec22a5b7485cb66 (diff)
Initial commit
Change-Id: I2bb38bffdd92602659670901b8442201b7c56214 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer-binding.hpp')
-rw-r--r--signal-composer-binding/signal-composer-binding.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/signal-composer-binding/signal-composer-binding.hpp b/signal-composer-binding/signal-composer-binding.hpp
new file mode 100644
index 0000000..3b512f3
--- /dev/null
+++ b/signal-composer-binding/signal-composer-binding.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <systemd/sd-event.h>
+
+#ifdef __cplusplus
+ #include <cstddef>
+extern "C"
+{
+#endif
+ #define AFB_BINDING_VERSION 2
+ #include <afb/afb-binding.h>
+#ifdef __cplusplus
+};
+#endif
+
+ void onEvent(const char *event, struct json_object *object);
+ int init_service();
+ int ticked(sd_event_source *source, uint64_t t, void *data);