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