Matt Spinler | 2a28c93 | 2020-02-03 14:23:40 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <map> |
Matt Spinler | 2a28c93 | 2020-02-03 14:23:40 -0600 | [diff] [blame] | 4 | #include <string> |
| 5 | #include <variant> |
| 6 | #include <vector> |
| 7 | |
| 8 | namespace openpower::pels |
| 9 | { |
| 10 | |
Sumit Kumar | 3e27443 | 2021-09-14 06:37:56 -0500 | [diff] [blame] | 11 | using DBusValue = |
| 12 | std::variant<std::string, bool, std::vector<uint8_t>, |
| 13 | std::vector<std::string>, |
| 14 | std::vector<std::tuple<std::string, std::string, std::string>>, |
| 15 | std::tuple<uint64_t, std::vector<uint8_t>>>; |
Matt Spinler | 2a28c93 | 2020-02-03 14:23:40 -0600 | [diff] [blame] | 16 | using DBusProperty = std::string; |
| 17 | using DBusInterface = std::string; |
| 18 | using DBusService = std::string; |
| 19 | using DBusPath = std::string; |
| 20 | using DBusInterfaceList = std::vector<DBusInterface>; |
| 21 | using DBusPathList = std::vector<DBusPath>; |
| 22 | using DBusPropertyMap = std::map<DBusProperty, DBusValue>; |
| 23 | using DBusInterfaceMap = std::map<DBusInterface, DBusPropertyMap>; |
Matt Spinler | 1ab6696 | 2020-10-29 13:21:44 -0500 | [diff] [blame] | 24 | using DBusSubTree = |
| 25 | std::map<DBusPath, std::map<DBusService, DBusInterfaceList>>; |
Matt Spinler | 2a28c93 | 2020-02-03 14:23:40 -0600 | [diff] [blame] | 26 | |
| 27 | } // namespace openpower::pels |