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 | |
Marri Devender Rao | 908f750 | 2017-07-10 01:49:54 -0500 | [diff] [blame] | 21 | /** |
| 22 | * @brief Register callback handler into DBUS for PropertyChange events |
| 23 | * |
| 24 | * @return negative value on failure |
| 25 | */ |
| 26 | int registerCallbackHandler(); |
Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 27 | } //fru |
| 28 | } //ipmi |