Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <map> |
| 4 | #include <sdbusplus/server.hpp> |
| 5 | #include <string> |
| 6 | #include <vector> |
| 7 | |
| 8 | namespace ibm |
| 9 | { |
| 10 | namespace logging |
| 11 | { |
| 12 | |
| 13 | using DbusInterface = std::string; |
| 14 | using DbusProperty = std::string; |
Matt Spinler | 259e727 | 2018-03-29 10:57:17 -0500 | [diff] [blame^] | 15 | using Value = sdbusplus::message::variant<bool, uint32_t, uint64_t, std::string, |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 16 | std::vector<std::string>>; |
| 17 | |
| 18 | using DbusPropertyMap = std::map<DbusProperty, Value>; |
| 19 | using DbusInterfaceMap = std::map<DbusInterface, DbusPropertyMap>; |
| 20 | using DbusInterfaceList = std::vector<DbusInterface>; |
| 21 | |
Matt Spinler | bc99749 | 2018-03-27 11:24:45 -0500 | [diff] [blame] | 22 | using ObjectValueTree = |
| 23 | std::map<sdbusplus::message::object_path, DbusInterfaceMap>; |
| 24 | |
Matt Spinler | 259e727 | 2018-03-29 10:57:17 -0500 | [diff] [blame^] | 25 | ObjectValueTree getManagedObjects(sdbusplus::bus::bus& bus, |
| 26 | const std::string& service, |
| 27 | const std::string& objPath); |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 28 | } |
| 29 | } |