Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 1 | #pragma once |
2 | #include <string> | ||||
3 | #include <sdbusplus/bus.hpp> | ||||
4 | #include "ipmi_fru_info_area.hpp" | ||||
5 | |||||
6 | namespace ipmi | ||||
7 | { | ||||
8 | namespace fru | ||||
9 | { | ||||
10 | using FRUId = uint8_t; | ||||
11 | using FRUAreaMap = std::map<FRUId, FruAreaData>; | ||||
12 | /** | ||||
13 | * @brief Get fru area data as per IPMI specification | ||||
14 | * | ||||
15 | * @param[in] fruNum FRU ID | ||||
16 | * | ||||
17 | * @return FRU area data as per IPMI specification | ||||
18 | */ | ||||
19 | const FruAreaData& getFruAreaData(const FRUId& fruNum); | ||||
20 | |||||
21 | } //fru | ||||
22 | } //ipmi |