From 36498b406abb3be754e84072d50f16d9dcbbfa8f Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Tue, 14 Apr 2026 07:26:31 -0400 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 * object_path Change-Id: Iace20f9ad26e8d9dc234979e7a4087d599da2641 Signed-off-by: Patrick Williams --- include/dbus_utility.hpp | 20 ++++++++++---------- include/user_monitor.hpp | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/dbus_utility.hpp b/include/dbus_utility.hpp index 17589c49d1..fd8c0f9661 100644 --- a/include/dbus_utility.hpp +++ b/include/dbus_utility.hpp @@ -47,17 +47,17 @@ using DbusVariantType = std::variant< bool, std::vector, std::vector, - sdbusplus::message::object_path, + sdbusplus::object_path, std::tuple>>, std::tuple>>, - std::vector, + std::vector, std::vector>, std::vector>>, std::vector>, std::vector>, + std::vector>, std::string, std::string, uint64_t>>, - std::vector>, + std::vector>, std::vector>, std::vector> >; @@ -67,7 +67,7 @@ using DBusPropertiesMap = std::vector>; using DBusInterfacesMap = std::vector>; using ManagedObjectType = - std::vector>; + std::vector>; // Map of service name to list of interfaces using MapperServiceMap = @@ -164,15 +164,15 @@ void getSubTreePaths( const MapperGetSubTreePathsResponse&)>&& callback); void getAssociatedSubTree( - const sdbusplus::message::object_path& associatedPath, - const sdbusplus::message::object_path& path, int32_t depth, + const sdbusplus::object_path& associatedPath, + const sdbusplus::object_path& path, int32_t depth, std::span interfaces, std::function&& callback); void getAssociatedSubTreePaths( - const sdbusplus::message::object_path& associatedPath, - const sdbusplus::message::object_path& path, int32_t depth, + const sdbusplus::object_path& associatedPath, + const sdbusplus::object_path& path, int32_t depth, std::span interfaces, std::function&& callback); @@ -204,7 +204,7 @@ void getAssociationEndPoints( const MapperEndPoints&)>&& callback); void getManagedObjects( - const std::string& service, const sdbusplus::message::object_path& path, + const std::string& service, const sdbusplus::object_path& path, std::function&& callback); } // namespace utility diff --git a/include/user_monitor.hpp b/include/user_monitor.hpp index f1a5ad14a2..5431e3bb44 100644 --- a/include/user_monitor.hpp +++ b/include/user_monitor.hpp @@ -15,7 +15,7 @@ namespace bmcweb inline void onUserRemoved(sdbusplus::message_t& msg) { - auto p = msg.unpack(); + auto p = msg.unpack(); std::string username = p.filename(); persistent_data::SessionStore::getInstance().removeSessionsByUsername( -- cgit v1.2.3