Jagpal Singh Gill | 23f091e | 2023-12-10 15:23:19 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Williams | 6662be3 | 2024-02-22 13:35:46 -0600 | [diff] [blame] | 3 | #include <sdbusplus/async.hpp> |
Jagpal Singh Gill | 23f091e | 2023-12-10 15:23:19 -0800 | [diff] [blame] | 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); |
Jagpal Singh Gill | 81da137 | 2023-12-15 17:01:03 -0800 | [diff] [blame] | 16 | /** @brief Find D-Bus paths for given interface */ |
Patrick Williams | 6662be3 | 2024-02-22 13:35:46 -0600 | [diff] [blame] | 17 | auto findPaths(sdbusplus::async::context& ctx, const std::string& iface, |
| 18 | const std::string& subpath) -> sdbusplus::async::task<paths_t>; |
Jagpal Singh Gill | 23f091e | 2023-12-10 15:23:19 -0800 | [diff] [blame] | 19 | |
| 20 | } // namespace phosphor::health::utils |