Sunny Srivastava | 6c71c9d | 2021-04-15 04:43:54 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | #include "types.hpp" |
| 3 | |
| 4 | namespace openpower |
| 5 | { |
| 6 | namespace vpd |
| 7 | { |
| 8 | namespace common |
| 9 | { |
| 10 | namespace 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 | */ |
| 19 | std::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 | */ |
| 26 | void callPIM(inventory::ObjectMap&& objects); |
| 27 | |
| 28 | } // namespace utility |
| 29 | } // namespace common |
| 30 | } // namespace vpd |
| 31 | } // namespace openpower |