Adjust "encoder" signature to fit cpp usage 01/18101/3
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 20 Nov 2018 18:38:15 +0000 (19:38 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 22 Nov 2018 10:10:26 +0000 (11:10 +0100)
Adjust "encoder" signature to fit cpp usage like for the decoder functions.

Change-Id: I5872c5e32fd69356124fefbc82fd1f77ab8acbf4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/can/can-signals.hpp

index 31e0c6a..331acdd 100644 (file)
@@ -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
 {