diff options
author | Marri Devender Rao <devenrao@in.ibm.com> | 2017-07-03 12:25:47 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-25 21:03:36 +0000 |
commit | 0acf057f9ed774ca7c354fc5735d53c6f53a8cef (patch) | |
tree | 824fa09f502a9f89098c2ce103712c95cf9ced1d /read_fru_data.hpp | |
parent | fa7b4e2e514ec205d90632af05d82d7806b261c0 (diff) | |
download | phosphor-host-ipmid-0acf057f9ed774ca7c354fc5735d53c6f53a8cef.tar.gz phosphor-host-ipmid-0acf057f9ed774ca7c354fc5735d53c6f53a8cef.zip |
read data for the specified FRU id from inventory
Change-Id: I5255541719edad6453cd3163d9ad428548f1a2c7
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Diffstat (limited to 'read_fru_data.hpp')
-rw-r--r-- | read_fru_data.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/read_fru_data.hpp b/read_fru_data.hpp new file mode 100644 index 0000000..f536cf2 --- /dev/null +++ b/read_fru_data.hpp @@ -0,0 +1,22 @@ +#pragma once +#include <string> +#include <sdbusplus/bus.hpp> +#include "ipmi_fru_info_area.hpp" + +namespace ipmi +{ +namespace fru +{ +using FRUId = uint8_t; +using FRUAreaMap = std::map<FRUId, FruAreaData>; +/** + * @brief Get fru area data as per IPMI specification + * + * @param[in] fruNum FRU ID + * + * @return FRU area data as per IPMI specification + */ +const FruAreaData& getFruAreaData(const FRUId& fruNum); + +} //fru +} //ipmi |