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; |
| 15 | using Value = sdbusplus::message::variant<bool, uint32_t, uint64_t, |
| 16 | std::string, |
| 17 | std::vector<std::string>>; |
| 18 | |
| 19 | using DbusPropertyMap = std::map<DbusProperty, Value>; |
| 20 | using DbusInterfaceMap = std::map<DbusInterface, DbusPropertyMap>; |
| 21 | using DbusInterfaceList = std::vector<DbusInterface>; |
| 22 | |
Matt Spinler | bc99749 | 2018-03-27 11:24:45 -0500 | [diff] [blame^] | 23 | using ObjectValueTree = |
| 24 | std::map<sdbusplus::message::object_path, DbusInterfaceMap>; |
| 25 | |
| 26 | ObjectValueTree getManagedObjects( |
| 27 | sdbusplus::bus::bus& bus, |
| 28 | const std::string& service, |
| 29 | const std::string& objPath); |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 30 | } |
| 31 | } |
| 32 | |