summaryrefslogtreecommitdiffstats
path: root/utils.hpp
blob: 51f983292cad261d15964a0d49b66faab1a933e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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] intf -  Interface
 * @param[in] path -  Object Path
 *
 * @return            Service name
 * @error             InternalFailure exception thrown
 */
std::string getService(sdbusplus::bus::bus& bus,
                       const std::string& intf,
                       const std::string& path);
} // namespace occ
} // namespace open_power
OpenPOWER on IntegriCloud