blob: 7c8b87172964bce7d4cabd2f23d76f95e4dbb886 [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
Vishwanatha Subbanna30e329a2017-07-24 23:13:14 +053013 * @param[in] path - Object Path
Vishwanatha Subbanna18dc1282017-08-29 14:09:35 +053014 * @param[in] intf - Interface
Vishwanatha Subbanna30e329a2017-07-24 23:13:14 +053015 *
16 * @return Service name
17 * @error InternalFailure exception thrown
18 */
Gunnar Mills94df8c92018-09-14 14:50:03 -050019std::string getService(sdbusplus::bus::bus& bus, const std::string& path,
Vishwanatha Subbanna18dc1282017-08-29 14:09:35 +053020 const std::string& intf);
Vishwanatha Subbanna30e329a2017-07-24 23:13:14 +053021} // namespace occ
22} // namespace open_power