util.hpp (e94c9ffcc639f6280972bb28b26bb357b830491f) | util.hpp (95530ec9fbfd478f85b1452571b9df21c76ec242) |
---|---|
1#pragma once | 1#pragma once |
2 3#include "config.h" 4 5#include "ethernet_interface.hpp" | 2#include "config_parser.hpp" |
6#include "types.hpp" 7 8#include <netinet/ether.h> 9#include <unistd.h> 10 11#include <cstring> 12#include <filesystem> 13#include <optional> 14#include <sdbusplus/bus.hpp> 15#include <string> 16#include <string_view> | 3#include "types.hpp" 4 5#include <netinet/ether.h> 6#include <unistd.h> 7 8#include <cstring> 9#include <filesystem> 10#include <optional> 11#include <sdbusplus/bus.hpp> 12#include <string> 13#include <string_view> |
14#include <unordered_set> |
|
17#include <xyz/openbmc_project/Network/EthernetInterface/server.hpp> 18 19namespace phosphor 20{ 21namespace network 22{ 23 24using EthernetInterfaceIntf = --- 127 unchanged lines hidden (view full) --- 152 * @param[in] args - arguments of the command. 153 */ 154void executeCommandinChildProcess(const char* path, char** args); 155 156/** @brief Get ignored interfaces from environment */ 157std::string_view getIgnoredInterfacesEnv(); 158 159/** @brief Parse the comma separated interface names */ | 15#include <xyz/openbmc_project/Network/EthernetInterface/server.hpp> 16 17namespace phosphor 18{ 19namespace network 20{ 21 22using EthernetInterfaceIntf = --- 127 unchanged lines hidden (view full) --- 150 * @param[in] args - arguments of the command. 151 */ 152void executeCommandinChildProcess(const char* path, char** args); 153 154/** @brief Get ignored interfaces from environment */ 155std::string_view getIgnoredInterfacesEnv(); 156 157/** @brief Parse the comma separated interface names */ |
160std::set<std::string_view> parseInterfaces(std::string_view interfaces); | 158std::unordered_set<std::string_view> 159 parseInterfaces(std::string_view interfaces); |
161 162/** @brief Get the ignored interfaces */ | 160 161/** @brief Get the ignored interfaces */ |
163const std::set<std::string_view>& getIgnoredInterfaces(); | 162const std::unordered_set<std::string_view>& getIgnoredInterfaces(); |
164 165} // namespace internal 166 167/* @brief runs the given command in child process. 168 * @param[in] path -path of the binary file which needs to be execeuted. 169 * @param[in] tArgs - arguments of the command. 170 */ 171template <typename... ArgTypes> --- 12 unchanged lines hidden --- | 163 164} // namespace internal 165 166/* @brief runs the given command in child process. 167 * @param[in] path -path of the binary file which needs to be execeuted. 168 * @param[in] tArgs - arguments of the command. 169 */ 170template <typename... ArgTypes> --- 12 unchanged lines hidden --- |