blob: 55bc90002e6eb862ad8375e36ab4072bc0602d21 [file] [log] [blame]
#pragma once
#include "types.hpp"
namespace openpower
{
namespace vpd
{
/** @brief Return the hex representation of the incoming byte
*
* @param [in] c - The input byte
* @returns The hex representation of the byte as a character.
*/
constexpr auto toHex(size_t c)
{
constexpr auto map = "0123456789abcdef";
return map[c];
}
namespace inventory
{
/** @brief Get inventory-manager's d-bus service
*/
auto getPIMService();
/** @brief Call inventory-manager to add objects
*
* @param [in] objects - Map of inventory object paths
*/
void callPIM(ObjectMap&& objects);
} // namespace inventory
} // namespace vpd
} // namespace openpower