From 4788a840abe82f2c0f20b027589085d29051763c Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 12 Jun 2017 09:36:17 +0200 Subject: Migration to binding v2 Change-Id: I05e93ff74db3f9e7b31a7348ea0fa23d16b737c7 Signed-off-by: Romain Forlot --- high-can-binding/high-can-binding-hat.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'high-can-binding/high-can-binding-hat.hpp') 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 extern "C" { - #define AFB_BINDING_VERSION 1 + #define AFB_BINDING_VERSION 2 #include }; -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); -- cgit