Deepak Kodihalli | 7679449 | 2017-02-16 23:48:18 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "types.hpp" |
| 4 | |
| 5 | namespace openpower |
| 6 | { |
| 7 | namespace vpd |
| 8 | { |
Santosh Puranik | bd011b2 | 2020-01-23 04:05:25 -0600 | [diff] [blame] | 9 | /** @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 | */ |
| 14 | constexpr auto toHex(size_t c) |
| 15 | { |
| 16 | constexpr auto map = "0123456789abcdef"; |
| 17 | return map[c]; |
| 18 | } |
Deepak Kodihalli | 7679449 | 2017-02-16 23:48:18 -0600 | [diff] [blame] | 19 | |
| 20 | namespace inventory |
| 21 | { |
| 22 | |
| 23 | /** @brief Get inventory-manager's d-bus service |
| 24 | */ |
| 25 | auto getPIMService(); |
| 26 | |
| 27 | /** @brief Call inventory-manager to add objects |
| 28 | * |
| 29 | * @param [in] objects - Map of inventory object paths |
| 30 | */ |
| 31 | void callPIM(ObjectMap&& objects); |
| 32 | |
| 33 | } // namespace inventory |
| 34 | |
Patrick Venture | c83c4dc | 2018-11-01 16:29:18 -0700 | [diff] [blame] | 35 | } // namespace vpd |
| 36 | } // namespace openpower |