summaryrefslogtreecommitdiffstats
path: root/high-can-binding/high-can-binding-hat.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-12 09:36:17 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-12 09:36:17 +0200
commit4788a840abe82f2c0f20b027589085d29051763c (patch)
treed33ff23a53b548287dfb7c34a4c678375f07fa22 /high-can-binding/high-can-binding-hat.hpp
parent96c638490f1e8a871c3072ae3dfab2b1e7a02b7f (diff)
Migration to binding v2
Change-Id: I05e93ff74db3f9e7b31a7348ea0fa23d16b737c7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'high-can-binding/high-can-binding-hat.hpp')
-rw-r--r--high-can-binding/high-can-binding-hat.hpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/high-can-binding/high-can-binding-hat.hpp b/high-can-binding/high-can-binding-hat.hpp
index b91f083..487ee72 100644
--- a/high-can-binding/high-can-binding-hat.hpp
+++ b/high-can-binding/high-can-binding-hat.hpp
@@ -3,15 +3,13 @@
#include <systemd/sd-event.h>
extern "C"
{
- #define AFB_BINDING_VERSION 1
+ #define AFB_BINDING_VERSION 2
#include <afb/afb-binding.h>
};
-extern "C" struct afb_binding_interface;
-extern "C" struct afb_service srvitf;
-extern const struct afb_binding_interface *binder_interface;
- void subscribe(struct afb_req request);
- void unsubscribe(struct afb_req request);
- void get(struct afb_req request);
- void initHigh(afb_service service);
+ 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, unsigned long t, void *data);