Restore /etc/dev-mapping.conf support
[apps/agl-service-can-low-level.git] / low-can-binding / can / can-bus.cpp
index 40e080f..11b7770 100644 (file)
@@ -69,6 +69,14 @@ void can_bus_t::set_can_devices(json_object *mapping)
        }
 }
 
+/// @brief Fills the CAN device map member with given values
+///
+/// @param[in] mapping configuration section.
+void can_bus_t::set_can_devices(const std::vector<std::pair<std::string, std::string> >& mapping)
+{
+       can_devices_mapping_ = mapping;
+}
+
 /// @brief Take a decoded message to determine if its value complies with the desired
 /// filters.
 ///