blob: 15e2f2cce358787e88853aeff4aa450559663340 [file] [log] [blame]
Sunny Srivastava6c71c9d2021-04-15 04:43:54 -05001#pragma once
2#include "types.hpp"
3
4namespace openpower
5{
6namespace vpd
7{
8namespace common
9{
10namespace utility
11{
12
13/** @brief Api to Get d-bus service for given interface
14 * @param[in] bus - Bus object
15 * @param[in] path - object path of the service
16 * @param[in] interface - interface under the object path
17 * @return service name
18 */
19std::string getService(sdbusplus::bus::bus& bus, const std::string& path,
20 const std::string& interface);
21
22/** @brief Call inventory-manager to add objects
23 *
24 * @param [in] objects - Map of inventory object paths
25 */
26void callPIM(inventory::ObjectMap&& objects);
27
28} // namespace utility
29} // namespace common
30} // namespace vpd
31} // namespace openpower