* limitations under the License.
*/
-#include "utils/signals.hpp"
+#include "signals.hpp"
/**
* @brief Can signal event map making access to afb_event
* externaly to an openxc existing structure.
*
- * @desc Event map is making relation between CanSignal generic name
+ * @desc Event map is making relation between can_signal_t generic name
* and the afb_event struct used by application framework to pushed
* to the subscriber.
*/
switch(key.type)
{
case openxc_DynamicField_Type::openxc_DynamicField_Type_STRING:
- lookup_signals_by_name(key.string_value, get_can_signals(), found_signals_name);
- lookup_signals_by_name(key.string_value, get_obd2_signals(), found_signals_name);
+ lookup_signals_by_name(key.string_value, configuration_t::instance().get_can_signals(), found_signals_name);
+ lookup_signals_by_name(key.string_value, configuration_t::instance().get_obd2_signals(), found_signals_name);
break;
case openxc_DynamicField_Type::openxc_DynamicField_Type_NUM:
- lookup_signals_by_id(key.numeric_value, get_can_signals(), found_signals_name);
- lookup_signals_by_id(key.numeric_value, get_obd2_signals(), found_signals_name);
+ lookup_signals_by_id(key.numeric_value, configuration_t::instance().get_can_signals(), found_signals_name);
+ lookup_signals_by_id(key.numeric_value, configuration_t::instance().get_obd2_signals(), found_signals_name);
break;
default:
ERROR(binder_interface, "find_signals: wrong openxc_DynamicField specified. Use openxc_DynamicField_Type_NUM or openxc_DynamicField_Type_STRING type only.");