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