blob: 19a162e85ee3a70bb63cd7af277b481518075b9a [file] [log] [blame]
Jayanth Othayothc4831812021-06-08 01:33:40 -05001#pragma once
2
3#include <sdbusplus/bus.hpp>
4
5#include <string>
6
7namespace openpower
8{
9namespace util
10{
11/**
12 * Get D-Bus service name for the specified object and interface
13 *
14 * @param[in] bus - sdbusplus D-Bus to attach to
15 * @param[in] objectPath - D-Bus object path
16 * @param[in] interface - D-Bus interface name
17 *
18 * @return service name on success and exception on failure
19 */
20std::string getService(sdbusplus::bus::bus& bus, const std::string& objectPath,
21 const std::string& interface);
22} // namespace util
23} // namespace openpower