1 #pragma once
2 #include <string>
3 #include <vector>
4 
5 namespace ipmi
6 {
7 namespace fru
8 {
9 using FruAreaData = std::vector<uint8_t>;
10 using Section = std::string;
11 using Value = std::string;
12 using Property = std::string;
13 using PropertyMap = std::map<Property, Value>;
14 using FruInventoryData = std::map<Section, PropertyMap>;
15 
16 /**
17  * @brief Builds Fru area data from inventory data
18  *
19  * @param[in] invData FRU properties values read from inventory
20  *
21  * @return FruAreaData FRU area data as per IPMI specification
22  */
23 FruAreaData buildFruAreaData(const FruInventoryData& inventory);
24 
25 } //fru
26 } //ipmi
27 
28