Cleanup include and prepare to switch binding v2
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 7 Jun 2017 21:38:19 +0000 (23:38 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 7 Jun 2017 21:38:19 +0000 (23:38 +0200)
Change-Id: I032e8ec32c3ff5b2464f2802dd93683752316049
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/low-can-binding/binding/low-can-cb.cpp
CAN-binder/low-can-binding/binding/low-can-hat.cpp
CAN-binder/low-can-binding/binding/low-can-hat.hpp
CAN-binder/low-can-binding/can/can-bus.cpp
CAN-binder/low-can-binding/can/can-signals.hpp

index bc94eed..e352101 100644 (file)
 #include "../diagnostic/diagnostic-message.hpp"
 #include "../utils/openxc-utils.hpp"
 
-extern "C"
-{
-       #include <afb/afb-service-itf.h>
-};
-
 
 ///******************************************************************************
 ///
index ddaa5a2..e8e5629 100644 (file)
 #include "application.hpp"
 #include "../can/can-bus.hpp"
 
-extern "C"
-{
-       #include <afb/afb-service-itf.h>
-};
-
 // Interface between the daemon and the binding
 const struct afb_binding_interface *binder_interface;
 
index 233d798..34dd80b 100644 (file)
@@ -26,6 +26,7 @@
 
 extern "C"
 {
+       #define AFB_BINDING_VERSION 1
        #include <afb/afb-binding.h>
 };
 
index 64b0246..d06eb77 100644 (file)
 #include "../utils/signals.hpp"
 #include "../utils/openxc-utils.hpp"
 
-extern "C"
-{
-       #include <afb/afb-binding.h>
-}
-
 /// @brief Class constructor
 ///
 /// @param[in] conf_file - handle to the json configuration file.
index d528f6a..a56fc8c 100644 (file)
 #include "can-message.hpp"
 #include "../diagnostic/diagnostic-message.hpp"
 
-extern "C"
-{
-       #include <afb/afb-binding.h>
-       #include <afb/afb-event-itf.h>
-}
-
 #define MESSAGE_SET_ID 0
 
 class can_signal_t;