blob: 55bc90002e6eb862ad8375e36ab4072bc0602d21 [file] [log] [blame]
Deepak Kodihalli76794492017-02-16 23:48:18 -06001#pragma once
2
3#include "types.hpp"
4
5namespace openpower
6{
7namespace vpd
8{
Santosh Puranikbd011b22020-01-23 04:05:25 -06009/** @brief Return the hex representation of the incoming byte
10 *
11 * @param [in] c - The input byte
12 * @returns The hex representation of the byte as a character.
13 */
14constexpr auto toHex(size_t c)
15{
16 constexpr auto map = "0123456789abcdef";
17 return map[c];
18}
Deepak Kodihalli76794492017-02-16 23:48:18 -060019
20namespace inventory
21{
22
23/** @brief Get inventory-manager's d-bus service
24 */
25auto getPIMService();
26
27/** @brief Call inventory-manager to add objects
28 *
29 * @param [in] objects - Map of inventory object paths
30 */
31void callPIM(ObjectMap&& objects);
32
33} // namespace inventory
34
Patrick Venturec83c4dc2018-11-01 16:29:18 -070035} // namespace vpd
36} // namespace openpower