blob: ded01593640ada04e6ef9624d466d3ad2ece0b59 [file] [log] [blame]
Jagpal Singh Gill23f091e2023-12-10 15:23:19 -08001#pragma once
2
3#include <sdbusplus/bus.hpp>
4#include <sdbusplus/sdbus.hpp>
5
6#include <vector>
7
8namespace phosphor::health::utils
9{
10
11using paths_t = std::vector<std::string>;
12
13/** @brief Start a systemd unit */
14void startUnit(sdbusplus::bus_t& bus, const std::string& sysdUnit);
Jagpal Singh Gill81da1372023-12-15 17:01:03 -080015/** @brief Find D-Bus paths for given interface */
16auto findPaths(sdbusplus::bus_t& bus, const std::string& iface) -> paths_t;
Jagpal Singh Gill23f091e2023-12-10 15:23:19 -080017
18} // namespace phosphor::health::utils