Jagpal Singh Gill | 23f091e | 2023-12-10 15:23:19 -0800 | [diff] [blame] | 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); |
Jagpal Singh Gill | 81da137 | 2023-12-15 17:01:03 -0800 | [diff] [blame] | 15 | /** @brief Find D-Bus paths for given interface */ |
| 16 | auto findPaths(sdbusplus::bus_t& bus, const std::string& iface) -> paths_t; |
Jagpal Singh Gill | 23f091e | 2023-12-10 15:23:19 -0800 | [diff] [blame] | 17 | |
| 18 | } // namespace phosphor::health::utils |