X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-binding%2Futils%2Fconfig-parser.cpp;h=6f69916995202dc71e1d778f361c39491acca91f;hb=452ab62dae573efc3a2d5a5d97c2f10fca5f502d;hp=60ea1187fdaa1106047f339b54ba153f83dcd262;hpb=0895cac1b9eae5c8701ba416eda1f43aa0016921;p=apps%2Fagl-service-can-low-level.git diff --git a/CAN-binder/low-can-binding/utils/config-parser.cpp b/CAN-binder/low-can-binding/utils/config-parser.cpp index 60ea1187..6f699169 100644 --- a/CAN-binder/low-can-binding/utils/config-parser.cpp +++ b/CAN-binder/low-can-binding/utils/config-parser.cpp @@ -17,7 +17,7 @@ #include "config-parser.hpp" -#include "../binding/low-can-binding.hpp" +#include "../binding/low-can-hat.hpp" namespace utils { @@ -47,14 +47,14 @@ namespace utils /// have to test the returned value. /// /// @return A const vector with string of linux CAN devices. - const std::vector config_parser_t::get_devices_name() + const std::vector > config_parser_t::get_devices_name() { - std::vector devices_name; + std::vector > devices_name; std::map bus_mapping = config_content_.get_keys("CANbus-mapping"); for(const auto& busIt : bus_mapping ) { - devices_name.push_back(busIt.second); + devices_name.push_back(std::make_pair(busIt.first, busIt.second)); } return devices_name;