Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 1 | #pragma once |
Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 2 | #include "ipmi_fru_info_area.hpp" |
| 3 | |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 4 | #include <sdbusplus/bus.hpp> |
| 5 | #include <string> |
| 6 | |
Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 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 | |
Marri Devender Rao | 908f750 | 2017-07-10 01:49:54 -0500 | [diff] [blame] | 22 | /** |
| 23 | * @brief Register callback handler into DBUS for PropertyChange events |
| 24 | * |
| 25 | * @return negative value on failure |
| 26 | */ |
| 27 | int registerCallbackHandler(); |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 28 | } // namespace fru |
| 29 | } // namespace ipmi |