aboutsummaryrefslogtreecommitdiffstats
path: root/src/can/can-signals.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-08 23:48:34 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commitbcb9bf1be8a854f9a9a5b2025ed9ee03b084ea44 (patch)
tree309744ddffe46fc71bb00d66added4fb58e8f927 /src/can/can-signals.hpp
parentb8e9588a9fb64b2e7ef7859ae0ab147c0c92ddda (diff)
Change all old struct name to the new class.
Change-Id: I8aa4430117c401182ef458a06a2aeb08957db1bb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can/can-signals.hpp')
-rw-r--r--src/can/can-signals.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/can/can-signals.hpp b/src/can/can-signals.hpp
index 3bfc2b89..e5e0f311 100644
--- a/src/can/can-signals.hpp
+++ b/src/can/can-signals.hpp
@@ -37,6 +37,8 @@ extern "C"
#define MESSAGE_SET_ID 0
+class can_signal_t;
+
/**
* @brief The type signature for a CAN signal decoder.
*
@@ -54,7 +56,7 @@ extern "C"
* @return a decoded value in an openxc_DynamicField struct.
*/
typedef openxc_DynamicField (*SignalDecoder)(can_signal_t& signal,
- const std::vector<CanSignal>& signals, float value, bool* send);
+ const std::vector<can_signal_t>& signals, float value, bool* send);
/**
* @brief: The type signature for a CAN signal encoder.
@@ -70,7 +72,6 @@ typedef openxc_DynamicField (*SignalDecoder)(can_signal_t& signal,
typedef uint64_t (*SignalEncoder)(can_signal_t* signal,
openxc_DynamicField* value, bool* send);
-
class can_signal_t
{
private:
@@ -111,4 +112,4 @@ public:
std::string& get_generic_name() const;
};
-void find_can_signals(const openxc_DynamicField &key, std::vector<CanSignal*>& found_signals);
+void find_can_signals(const openxc_DynamicField &key, std::vector<can_signal_t*>& found_signals);