blob: 7faca9880661572bfd622a5144584f78c190ed28 [file] [log] [blame]
Gunnar Millsd8249ee2018-04-12 16:33:53 -05001#pragma once
2#include <string>
3#include <vector>
4
5namespace ipmi
6{
7namespace fru
8{
9using FruAreaData = std::vector<uint8_t>;
10using Section = std::string;
11using Value = std::string;
12using Property = std::string;
13using PropertyMap = std::map<Property, Value>;
14using 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 */
23FruAreaData buildFruAreaData(const FruInventoryData& inventory);
24
25} //fru
26} //ipmi
27