| #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 |