blob: 7a924e5997b7e470a94a1b6b021714431aae3709 [file] [log] [blame]
Jagpal Singh Gill23f091e2023-12-10 15:23:19 -08001#pragma once
2
Patrick Williams6662be32024-02-22 13:35:46 -06003#include <sdbusplus/async.hpp>
Jagpal Singh Gill23f091e2023-12-10 15:23:19 -08004#include <sdbusplus/bus.hpp>
5#include <sdbusplus/sdbus.hpp>
6
7#include <vector>
8
9namespace phosphor::health::utils
10{
11
12using paths_t = std::vector<std::string>;
13
14/** @brief Start a systemd unit */
15void startUnit(sdbusplus::bus_t& bus, const std::string& sysdUnit);
Jagpal Singh Gill81da1372023-12-15 17:01:03 -080016/** @brief Find D-Bus paths for given interface */
Patrick Williams6662be32024-02-22 13:35:46 -060017auto findPaths(sdbusplus::async::context& ctx, const std::string& iface,
18 const std::string& subpath) -> sdbusplus::async::task<paths_t>;
Jagpal Singh Gill23f091e2023-12-10 15:23:19 -080019
20} // namespace phosphor::health::utils