1 #pragma once 2 3 #include <sdbusplus/bus.hpp> 4 #include <sdbusplus/sdbus.hpp> 5 6 #include <vector> 7 8 namespace phosphor::health::utils 9 { 10 11 using paths_t = std::vector<std::string>; 12 13 /** @brief Start a systemd unit */ 14 void startUnit(sdbusplus::bus_t& bus, const std::string& sysdUnit); 15 /** @brief Find D-Bus paths for given interface */ 16 auto findPaths(sdbusplus::bus_t& bus, const std::string& iface) -> paths_t; 17 18 } // namespace phosphor::health::utils 19