summaryrefslogtreecommitdiffstats
path: root/src/configuration.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-09 02:33:19 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commit79cb12807f8a092acd3323d407a4661db9c04a74 (patch)
treefad80cbdc40b162d35743c313c8082e8d32ff22a /src/configuration.hpp
parent0ee5e30844ecd1749d6d7c48b8ce8f6573ed91cb (diff)
Move some functions to configuration class.
Change-Id: I87b1b6961206ae3848cf6aca367698218fe1523e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/configuration.hpp')
-rw-r--r--src/configuration.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/configuration.hpp b/src/configuration.hpp
index 77f452ff..9c49da04 100644
--- a/src/configuration.hpp
+++ b/src/configuration.hpp
@@ -63,11 +63,11 @@ class configuration_t
const std::vector<can_message_set_t>& get_can_message_set() const;
- const std::vector<can_signal_t>& get_can_signals() const;
+ std::vector<can_signal_t>& get_can_signals() const;
const std::vector<can_message_definition_t>& get_can_message_definition() const;
- const std::vector<obd2_signal_t>& get_obd2_signals() const;
+ std::vector<obd2_signal_t>& get_obd2_signals() const;
uint32_t get_signal_id(obd2_signal_t& sig) const;
@@ -75,6 +75,10 @@ class configuration_t
void set_active_message_set(uint8_t id);
+ void find_obd2_signals(const openxc_DynamicField &key, std::vector<obd2_signal_t*>& found_signals);
+
+ void find_can_signals(const openxc_DynamicField &key, std::vector<can_signal_t*>& found_signals);
+
/*
/// TODO: implement this function as method into can_bus class
/// @brief Pre initialize actions made before CAN bus initialization