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 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); 30 } 31 } 32 33