Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 1 | #ifndef OPENBMC_IPMI_FRU_READ_H |
| 2 | #define OPENBMC_IPMI_FRU_READ_H |
| 3 | |
| 4 | #include <systemd/sd-bus.h> |
| 5 | #include <array> |
| 6 | #include <string> |
| 7 | #include <map> |
| 8 | #include <vector> |
| 9 | |
| 10 | struct IPMIFruData |
| 11 | { |
| 12 | std::string section; |
| 13 | std::string property; |
| 14 | std::string delimiter; |
| 15 | }; |
| 16 | |
| 17 | using DbusProperty = std::string; |
| 18 | using DbusPropertyVec = std::vector<std::pair<DbusProperty, IPMIFruData>>; |
| 19 | |
| 20 | using DbusInterface = std::string; |
| 21 | using DbusInterfaceVec = std::vector<std::pair<DbusInterface, DbusPropertyVec>>; |
| 22 | |
| 23 | using FruInstancePath = std::string; |
| 24 | using FruInstanceVec = std::vector<std::pair<FruInstancePath, DbusInterfaceVec>>; |
| 25 | |
| 26 | using FruId = uint32_t; |
| 27 | using FruMap = std::map<FruId, FruInstanceVec>; |
| 28 | |
| 29 | #endif |