summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2026-04-14 14:26:31 +0300
committerEd Tanous <ed@tanous.net>2026-04-15 04:50:54 +0300
commit36498b406abb3be754e84072d50f16d9dcbbfa8f (patch)
treee4e2744ceefa79581eddab2d12790f648231db3c /features
parentf2d97d5f96dc2adeda01cdc7eeff5d8fedc5d33a (diff)
downloadbmcweb-36498b406abb3be754e84072d50f16d9dcbbfa8f.tar.xz
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 <patrick@stwcx.xyz>
Diffstat (limited to 'features')
-rw-r--r--features/google/google_service_root.hpp2
-rw-r--r--features/openbmc_rest/image_upload.hpp2
-rw-r--r--features/openbmc_rest/openbmc_dbus_rest.hpp2
-rw-r--r--features/serial/obmc_console.hpp3
-rw-r--r--features/virtual_media/vm_websocket.hpp3
5 files changed, 5 insertions, 7 deletions
diff --git a/features/google/google_service_root.hpp b/features/google/google_service_root.hpp
index 4945bb424b..d4d719c8d9 100644
--- a/features/google/google_service_root.hpp
+++ b/features/google/google_service_root.hpp
@@ -87,7 +87,7 @@ inline void hothGetSubtreeCallback(
}
for (const auto& [path, services] : subtree)
{
- sdbusplus::message::object_path objPath(path);
+ sdbusplus::object_path objPath(path);
if (objPath.filename() != rotId || services.empty())
{
continue;
diff --git a/features/openbmc_rest/image_upload.hpp b/features/openbmc_rest/image_upload.hpp
index 5b1f2cc058..ffdbde9823 100644
--- a/features/openbmc_rest/image_upload.hpp
+++ b/features/openbmc_rest/image_upload.hpp
@@ -78,7 +78,7 @@ inline void uploadImageHandler(
[asyncResp](sdbusplus::message_t& m) {
BMCWEB_LOG_DEBUG("Match fired");
- sdbusplus::message::object_path path;
+ sdbusplus::object_path path;
dbus::utility::DBusInterfacesMap interfaces;
m.read(path, interfaces);
diff --git a/features/openbmc_rest/openbmc_dbus_rest.hpp b/features/openbmc_rest/openbmc_dbus_rest.hpp
index 5b12ebe744..ba98312d64 100644
--- a/features/openbmc_rest/openbmc_dbus_rest.hpp
+++ b/features/openbmc_rest/openbmc_dbus_rest.hpp
@@ -265,7 +265,7 @@ inline void getManagedObjectsForEnumerate(
BMCWEB_LOG_DEBUG(
"getManagedObjectsForEnumerate {} object_manager_path {} connection_name {}",
objectName, objectManagerPath, connectionName);
- sdbusplus::message::object_path path(objectManagerPath);
+ sdbusplus::object_path path(objectManagerPath);
dbus::utility::getManagedObjects(
connectionName, path,
[transaction, objectName,
diff --git a/features/serial/obmc_console.hpp b/features/serial/obmc_console.hpp
index 3f9c79f9c7..1a9c8c3d8a 100644
--- a/features/serial/obmc_console.hpp
+++ b/features/serial/obmc_console.hpp
@@ -303,8 +303,7 @@ inline void onOpen(crow::websocket::Connection& conn)
consoleLeaf = conn.url().segments().back();
}
std::string consolePath =
- sdbusplus::message::object_path("/xyz/openbmc_project/console") /
- consoleLeaf;
+ sdbusplus::object_path("/xyz/openbmc_project/console") / consoleLeaf;
BMCWEB_LOG_DEBUG("Console Object path = {} Request target = {}",
consolePath, conn.url().path());
diff --git a/features/virtual_media/vm_websocket.hpp b/features/virtual_media/vm_websocket.hpp
index 3065a43d2b..c830543f96 100644
--- a/features/virtual_media/vm_websocket.hpp
+++ b/features/virtual_media/vm_websocket.hpp
@@ -428,8 +428,7 @@ using SessionMap = boost::container::flat_map<crow::websocket::Connection*,
static SessionMap sessions;
inline void afterGetSocket(
- crow::websocket::Connection& conn,
- const sdbusplus::message::object_path& path,
+ crow::websocket::Connection& conn, const sdbusplus::object_path& path,
const boost::system::error_code& ec,
const dbus::utility::DBusPropertiesMap& propertiesList)
{