From 59d494ee9608850f17bd7f4644838c26daab2669 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Fri, 22 Jul 2022 19:26:55 -0500 Subject: sdbusplus: use shorter type aliases The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t Signed-off-by: Patrick Williams Change-Id: I46a5eec210002af84239af74a93c830b1d4a13f1 --- include/dbus_monitor.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/dbus_monitor.hpp') diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp index ce0550d341..129422e4ae 100644 --- a/include/dbus_monitor.hpp +++ b/include/dbus_monitor.hpp @@ -18,7 +18,7 @@ namespace dbus_monitor struct DbusWebsocketSession { - std::vector> matches; + std::vector> matches; boost::container::flat_set, std::vector> interfaces; @@ -44,7 +44,7 @@ inline int onPropertyUpdate(sd_bus_message* m, void* userdata, BMCWEB_LOG_ERROR << "Couldn't find dbus connection " << connection; return 0; } - sdbusplus::message::message message(m); + sdbusplus::message_t message(m); nlohmann::json json; json["event"] = message.get_member(); json["path"] = message.get_path(); @@ -206,7 +206,7 @@ inline void requestRoutes(App& app) BMCWEB_LOG_DEBUG << "Creating match " << propertiesMatchString; thisSession.matches.emplace_back( - std::make_unique( + std::make_unique( *crow::connections::systemBus, propertiesMatchString, onPropertyUpdate, &conn)); } @@ -229,7 +229,7 @@ inline void requestRoutes(App& app) ifaceMatchString += "'"; BMCWEB_LOG_DEBUG << "Creating match " << ifaceMatchString; thisSession.matches.emplace_back( - std::make_unique( + std::make_unique( *crow::connections::systemBus, ifaceMatchString, onPropertyUpdate, &conn)); } @@ -243,7 +243,7 @@ inline void requestRoutes(App& app) "member='InterfacesAdded'"); BMCWEB_LOG_DEBUG << "Creating match " << objectManagerMatchString; thisSession.matches.emplace_back( - std::make_unique( + std::make_unique( *crow::connections::systemBus, objectManagerMatchString, onPropertyUpdate, &conn)); } -- cgit v1.2.3