blob: d715858df745f91dab40d9c85022b45994b04dc7 [file] [log] [blame]
Marri Devender Rao0acf0572017-07-03 12:25:47 -05001#pragma once
2#include <string>
3#include <sdbusplus/bus.hpp>
4#include "ipmi_fru_info_area.hpp"
5
6namespace ipmi
7{
8namespace fru
9{
10using FRUId = uint8_t;
11using 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 */
19const FruAreaData& getFruAreaData(const FRUId& fruNum);
20
Marri Devender Rao908f7502017-07-10 01:49:54 -050021/**
22 * @brief Register callback handler into DBUS for PropertyChange events
23 *
24 * @return negative value on failure
25 */
26int registerCallbackHandler();
Marri Devender Rao0acf0572017-07-03 12:25:47 -050027} //fru
28} //ipmi