diff options
| author | Patrick Williams <patrick@stwcx.xyz> | 2026-04-14 14:26:31 +0300 |
|---|---|---|
| committer | Ed Tanous <ed@tanous.net> | 2026-04-15 04:50:54 +0300 |
| commit | 36498b406abb3be754e84072d50f16d9dcbbfa8f (patch) | |
| tree | e4e2744ceefa79581eddab2d12790f648231db3c /redfish-core/include/utils/fan_utils.hpp | |
| parent | f2d97d5f96dc2adeda01cdc7eeff5d8fedc5d33a (diff) | |
| download | bmcweb-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 'redfish-core/include/utils/fan_utils.hpp')
| -rw-r--r-- | redfish-core/include/utils/fan_utils.hpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/redfish-core/include/utils/fan_utils.hpp b/redfish-core/include/utils/fan_utils.hpp index 6918bb0f0a..e9b0397e18 100644 --- a/redfish-core/include/utils/fan_utils.hpp +++ b/redfish-core/include/utils/fan_utils.hpp @@ -70,16 +70,15 @@ inline void afterGetFanSensorObjects( inline void getFanSensorObjects( const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, - const sdbusplus::message::object_path& fanPath, + const sdbusplus::object_path& fanPath, const std::function<void( const std::vector<std::pair<std::string, std::string>>&)>& callback) { - sdbusplus::message::object_path endpointPath{fanPath}; + sdbusplus::object_path endpointPath{fanPath}; endpointPath /= "sensors"; dbus::utility::getAssociatedSubTree( - endpointPath, - sdbusplus::message::object_path("/xyz/openbmc_project/sensors"), 0, + endpointPath, sdbusplus::object_path("/xyz/openbmc_project/sensors"), 0, sensorInterface, std::bind_front(afterGetFanSensorObjects, asyncResp, callback)); } @@ -90,13 +89,12 @@ inline void getFanPaths( const std::function<void(const dbus::utility::MapperGetSubTreePathsResponse& fanPaths)>& callback) { - sdbusplus::message::object_path endpointPath{validChassisPath}; + sdbusplus::object_path endpointPath{validChassisPath}; endpointPath /= "cooled_by"; dbus::utility::getAssociatedSubTreePaths( - endpointPath, - sdbusplus::message::object_path("/xyz/openbmc_project/inventory"), 0, - fanInterface, + endpointPath, sdbusplus::object_path("/xyz/openbmc_project/inventory"), + 0, fanInterface, [asyncResp, callback]( const boost::system::error_code& ec, const dbus::utility::MapperGetSubTreePathsResponse& subtreePaths) { |
