gitignore update
[apps/agl-service-can-low-level.git] / src / utils / signals.cpp
index 6e2f396..41e13c0 100644 (file)
@@ -21,7 +21,7 @@
  * @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.
  */
@@ -60,17 +60,17 @@ std::vector<std::string> find_signals(const openxc_DynamicField &key)
        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_diagnostic_messages(), 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_diagnostic_messages(), 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.");
                        break;
        }
-       DEBUG(binder_interface, "Found %d signal(s)", (int)found_signals_name.size());
+       DEBUG(binder_interface, "find_signals: Found %d signal(s)", (int)found_signals_name.size());
        return found_signals_name;
 }