From: Romain Forlot Date: Tue, 20 Nov 2018 18:38:15 +0000 (+0100) Subject: Adjust "encoder" signature to fit cpp usage X-Git-Tag: 6.99.1~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=6d52fb871953e3c0219a8dd1c4a62fc3143925df;p=apps%2Fagl-service-can-low-level.git Adjust "encoder" signature to fit cpp usage Adjust "encoder" signature to fit cpp usage like for the decoder functions. Change-Id: I5872c5e32fd69356124fefbc82fd1f77ab8acbf4 Signed-off-by: Romain Forlot --- diff --git a/low-can-binding/can/can-signals.hpp b/low-can-binding/can/can-signals.hpp index 31e0c6a6..331acddb 100644 --- a/low-can-binding/can/can-signals.hpp +++ b/low-can-binding/can/can-signals.hpp @@ -61,8 +61,8 @@ typedef openxc_DynamicField (*signal_decoder)(can_signal_t& signal, float value, /// @param[out] send - An output parameter. If the encoding failed or the CAN signal should /// not be encoded for some other reason, this will be flipped to false. /// -typedef uint64_t (*signal_encoder)(can_signal_t* signal, - openxc_DynamicField* value, bool* send); +typedef uint64_t (*signal_encoder)(can_signal_t& signal, + const openxc_DynamicField& field, bool* send); class can_signal_t {