blob: d3268b8e330380e1a7fb4f702c6ad2bb9b60e094 [file] [log] [blame]
Marri Devender Rao0acf0572017-07-03 12:25:47 -05001#pragma once
Marri Devender Rao0acf0572017-07-03 12:25:47 -05002#include "ipmi_fru_info_area.hpp"
3
Patrick Venture0b02be92018-08-31 11:55:55 -07004#include <sdbusplus/bus.hpp>
5#include <string>
6
Marri Devender Rao0acf0572017-07-03 12:25:47 -05007namespace ipmi
8{
9namespace fru
10{
11using FRUId = uint8_t;
12using 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 */
20const FruAreaData& getFruAreaData(const FRUId& fruNum);
21
Marri Devender Rao908f7502017-07-10 01:49:54 -050022/**
23 * @brief Register callback handler into DBUS for PropertyChange events
24 *
25 * @return negative value on failure
26 */
27int registerCallbackHandler();
Patrick Venture0b02be92018-08-31 11:55:55 -070028} // namespace fru
29} // namespace ipmi