blob: 61c4e81d0c36ffbfea214696d606f3b8c6a1d856 [file] [log] [blame]
Marri Devender Rao7d9157e2017-07-01 16:11:40 -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