blob: ded01593640ada04e6ef9624d466d3ad2ece0b59 [file] [log] [blame]
#pragma once
#include <sdbusplus/bus.hpp>
#include <sdbusplus/sdbus.hpp>
#include <vector>
namespace phosphor::health::utils
{
using paths_t = std::vector<std::string>;
/** @brief Start a systemd unit */
void startUnit(sdbusplus::bus_t& bus, const std::string& sysdUnit);
/** @brief Find D-Bus paths for given interface */
auto findPaths(sdbusplus::bus_t& bus, const std::string& iface) -> paths_t;
} // namespace phosphor::health::utils