Gunnar Mills | d8249ee | 2018-04-12 16:33:53 -0500 | [diff] [blame] | 1 | #pragma once |
Patrick Venture | 26f80ab | 2018-08-31 12:00:50 -0700 | [diff] [blame] | 2 | |
Patrick Williams | 69c945e | 2023-05-26 14:59:07 -0500 | [diff] [blame] | 3 | #include <cstdint> |
Patrick Venture | 26f80ab | 2018-08-31 12:00:50 -0700 | [diff] [blame] | 4 | #include <map> |
Gunnar Mills | d8249ee | 2018-04-12 16:33:53 -0500 | [diff] [blame] | 5 | #include <string> |
| 6 | #include <vector> |
| 7 | |
| 8 | namespace ipmi |
| 9 | { |
| 10 | namespace fru |
| 11 | { |
| 12 | using FruAreaData = std::vector<uint8_t>; |
| 13 | using Section = std::string; |
| 14 | using Value = std::string; |
| 15 | using Property = std::string; |
| 16 | using PropertyMap = std::map<Property, Value>; |
| 17 | using FruInventoryData = std::map<Section, PropertyMap>; |
| 18 | |
| 19 | /** |
| 20 | * @brief Builds Fru area data from inventory data |
| 21 | * |
| 22 | * @param[in] invData FRU properties values read from inventory |
| 23 | * |
| 24 | * @return FruAreaData FRU area data as per IPMI specification |
| 25 | */ |
| 26 | FruAreaData buildFruAreaData(const FruInventoryData& inventory); |
| 27 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 28 | } // namespace fru |
| 29 | } // namespace ipmi |