blob: 45c22308e8ebc27bb924c9aeaf056113c31c66c5 [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 */
Patrick Williams2eb01762022-07-22 19:26:56 -050019std::string getService(sdbusplus::bus_t& bus, const std::string& path,
Sunny Srivastava6c71c9d2021-04-15 04:43:54 -050020 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