blob: 33088df3d8c5c4f5ace6e27793872814dab6d5f3 [file] [log] [blame]
#pragma once
#include <sdbusplus/bus.hpp>
#include <string>
namespace open_power
{
namespace occ
{
/**
* @brief Gets the D-Bus Service name for the input D-Bus path
*
* @param[in] bus - Bus handler
* @param[in] path - Object Path
* @param[in] intf - Interface
*
* @return Service name
* @error InternalFailure exception thrown
*/
std::string getService(sdbusplus::bus::bus& bus,
const std::string& path,
const std::string& intf);
} // namespace occ
} // namespace open_power