blob: 51f983292cad261d15964a0d49b66faab1a933e0 [file] [log] [blame]
Vishwanatha Subbanna30e329a2017-07-24 23:13:14 +05301#pragma once
2
3#include <sdbusplus/bus.hpp>
4#include <string>
5namespace open_power
6{
7namespace occ
8{
9/**
10 * @brief Gets the D-Bus Service name for the input D-Bus path
11 *
12 * @param[in] bus - Bus handler
13 * @param[in] intf - Interface
14 * @param[in] path - Object Path
15 *
16 * @return Service name
17 * @error InternalFailure exception thrown
18 */
19std::string getService(sdbusplus::bus::bus& bus,
20 const std::string& intf,
21 const std::string& path);
22} // namespace occ
23} // namespace open_power