summaryrefslogtreecommitdiffstats
path: root/low-can-binding/binding/low-can-hat.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-01-02 12:58:48 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-01-02 12:58:48 +0100
commit6faef2305955b025c3cf1cfaf17a6aa073727c24 (patch)
tree4dd4ec93f9c1b0a4809338e7320bdd1589b7f80d /low-can-binding/binding/low-can-hat.hpp
parentd8d990528ea9746b21788f97be3fdbcc392c5d96 (diff)
Make low-can use afb-genskel by default
Cleaning header file inclusion Change-Id: Ic0dd9637ecd491692bd4b8b39e9602e85498c0a9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/binding/low-can-hat.hpp')
-rw-r--r--low-can-binding/binding/low-can-hat.hpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/low-can-binding/binding/low-can-hat.hpp b/low-can-binding/binding/low-can-hat.hpp
index d9fb89f2..5722666c 100644
--- a/low-can-binding/binding/low-can-hat.hpp
+++ b/low-can-binding/binding/low-can-hat.hpp
@@ -24,11 +24,8 @@
#include <memory>
#include <systemd/sd-event.h>
-extern "C"
-{
- #define AFB_BINDING_VERSION 2
- #include <afb/afb-binding.h>
-};
+#define AFB_BINDING_VERSION 2
+#include <afb/afb-binding>
class low_can_subscription_t;
@@ -36,11 +33,3 @@ int initv2();
void on_no_clients(std::shared_ptr<low_can_subscription_t> can_subscription, std::map<int, std::shared_ptr<low_can_subscription_t> >& s);
void on_no_clients(std::shared_ptr<low_can_subscription_t> can_subscription, uint32_t pid, std::map<int, std::shared_ptr<low_can_subscription_t> >& s);
int read_message(sd_event_source *s, int fd, uint32_t revents, void *userdata);
-/*
-void auth(struct afb_req request);
-void subscribe(struct afb_req request);
-void unsubscribe(struct afb_req request);
-void write(struct afb_req request);
-void get(struct afb_req request);
-void list(struct afb_req request);
-*/