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 /**
22  * @brief Register callback handler into DBUS for PropertyChange events
23  *
24  * @return negative value on failure
25  */
26 int registerCallbackHandler();
27 } //fru
28 } //ipmi
29