Cleaning, set up binding version in config.cmake 23/16323/1 5.99.4 5.99.5 5.99.6 flounder/5.99.4 flounder/5.99.5 flounder/5.99.6 flounder_5.99.4 flounder_5.99.5 flounder_5.99.6
authorRomain Forlot <romain.forlot@iot.bzh>
Sat, 28 Jul 2018 00:30:14 +0000 (02:30 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 23 Aug 2018 15:40:31 +0000 (17:40 +0200)
Change-Id: I2e8d89b09982c9f3770a5a3e10d281e0ad87651c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
conf.d/cmake/config.cmake
low-can-binding/binding/low-can-hat.hpp
low-can-binding/diagnostic/active-diagnostic-request.cpp
low-can-binding/diagnostic/active-diagnostic-request.hpp

index e144553..441321d 100644 (file)
@@ -119,6 +119,8 @@ set(CXX_COMPILE_OPTIONS -pthread CACHE STRING "Compilation flags for C++ languag
 # -D_FORTIFY_SOURCE=2
 # CACHE STRING "Compilation flags for RELEASE build type.")
 
+add_definitions(-DAFB_BINDING_VERSION=2)
+
 # Optional location for config.xml.in
 # -----------------------------------
 #set(WIDGET_ICON "\"${CMAKE_SOURCE_DIR}conf.d/wgt/${PROJECT_ICON}\"" CACHE PATH "Path to the widget icon")
index 5722666..248b62c 100644 (file)
@@ -24,7 +24,6 @@
 #include <memory>
 #include <systemd/sd-event.h>
 
-#define AFB_BINDING_VERSION 2
 #include <afb/afb-binding>
 
 class low_can_subscription_t;
index a242147..44ad47b 100644 (file)
 
 std::string active_diagnostic_request_t::prefix_ = "diagnostic_messages";
 
-bool active_diagnostic_request_t::operator==(const active_diagnostic_request_t& b)
-{
-       return (bus_ == b.bus_ && id_ == b.id_ && handle_ == b.handle_);
-}
-
-active_diagnostic_request_t& active_diagnostic_request_t::operator=(const active_diagnostic_request_t& adr)
-{
-       if (this != &adr)
-       {
-               bus_ = adr.bus_;
-               id_ = adr.id_;
-               handle_ = adr.handle_;
-               name_ = adr.name_;
-               decoder_ = adr.decoder_;
-               callback_ = adr.callback_;
-               recurring_ = adr.recurring_;
-               permanent_ = adr.permanent_;
-               wait_for_multiple_responses_ = adr.wait_for_multiple_responses_;
-               frequency_clock_ = adr.frequency_clock_;
-               timeout_clock_ = adr.timeout_clock_;
-               socket_ = adr.socket_;
-       }
-
-       return *this;
-}
-
-active_diagnostic_request_t::active_diagnostic_request_t()
-       : bus_{nullptr},
-         id_{0},
-         handle_{nullptr},
-         name_{""},
-         decoder_{nullptr},
-         callback_{nullptr},
-         recurring_{false},
-         permanent_{false},
-         wait_for_multiple_responses_{false},
-         frequency_clock_{frequency_clock_t()},
-         timeout_clock_{frequency_clock_t()},
-         socket_{}
-{}
-
 active_diagnostic_request_t::active_diagnostic_request_t(const std::string& bus, uint32_t id,
                const std::string& name,
                bool wait_for_multiple_responses,
index 8e5333b..e32792a 100644 (file)
@@ -86,10 +86,6 @@ private:
                                                                          ///< this request was sent.
        utils::socketcan_bcm_t socket_; ///< socket_ - A BCM socket setup to send cyclic message to CAN ID 7DF.
 public:
-       bool operator==(const active_diagnostic_request_t& b);
-       active_diagnostic_request_t& operator=(const active_diagnostic_request_t& adr);
-
-       active_diagnostic_request_t();
        active_diagnostic_request_t(active_diagnostic_request_t&&) = default;
        active_diagnostic_request_t(const std::string& bus, uint32_t id,
                const std::string& name, bool wait_for_multiple_responses,