forked from ibm-openbmc/openpower-vpd-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common_utility.hpp
31 lines (27 loc) · 712 Bytes
/
common_utility.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include "types.hpp"
namespace openpower
{
namespace vpd
{
namespace common
{
namespace utility
{
/** @brief Api to Get d-bus service for given interface
* @param[in] bus - Bus object
* @param[in] path - object path of the service
* @param[in] interface - interface under the object path
* @return service name
*/
std::string getService(sdbusplus::bus_t& bus, const std::string& path,
const std::string& interface);
/** @brief Call inventory-manager to add objects
*
* @param [in] objects - Map of inventory object paths
*/
void callPIM(inventory::ObjectMap&& objects);
} // namespace utility
} // namespace common
} // namespace vpd
} // namespace openpower