Patrick Venture | 46470a3 | 2018-09-07 19:26:25 -0700 | [diff] [blame] | 1 | #pragma once |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 2 | |
| 3 | #include <systemd/sd-bus.h> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 4 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 5 | #include <array> |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 6 | #include <map> |
Patrick Venture | 0b02be9 | 2018-08-31 11:55:55 -0700 | [diff] [blame] | 7 | #include <string> |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 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; |
Ratan Gupta | 0033097 | 2018-01-19 16:23:10 +0530 | [diff] [blame] | 24 | |
| 25 | struct FruInstance |
| 26 | { |
| 27 | uint8_t entityID; |
| 28 | uint8_t entityInstance; |
| 29 | FruInstancePath path; |
| 30 | DbusInterfaceVec interfaces; |
| 31 | }; |
| 32 | |
| 33 | using FruInstanceVec = std::vector<FruInstance>; |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 34 | |
| 35 | using FruId = uint32_t; |
| 36 | using FruMap = std::map<FruId, FruInstanceVec>; |