1 #pragma once 2 #include "ipmi_fru_info_area.hpp" 3 4 #include <sdbusplus/bus.hpp> 5 #include <string> 6 7 namespace ipmi 8 { 9 namespace fru 10 { 11 using FRUId = uint8_t; 12 using FRUAreaMap = std::map<FRUId, FruAreaData>; 13 /** 14 * @brief Get fru area data as per IPMI specification 15 * 16 * @param[in] fruNum FRU ID 17 * 18 * @return FRU area data as per IPMI specification 19 */ 20 const FruAreaData& getFruAreaData(const FRUId& fruNum); 21 22 /** 23 * @brief Register callback handler into DBUS for PropertyChange events 24 * 25 * @return negative value on failure 26 */ 27 int registerCallbackHandler(); 28 } // namespace fru 29 } // namespace ipmi 30