summaryrefslogtreecommitdiff
path: root/include/image_upload.hpp
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2022-07-23 03:26:55 +0300
committerEd Tanous <ed@tanous.net>2022-07-25 06:27:22 +0300
commit59d494ee9608850f17bd7f4644838c26daab2669 (patch)
tree80baf245361db6eb78181e782e79e1ab6da095a9 /include/image_upload.hpp
parentd5c80ad9c07b94465d8ea62d2b6f87c30cac765e (diff)
downloadbmcweb-59d494ee9608850f17bd7f4644838c26daab2669.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 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I46a5eec210002af84239af74a93c830b1d4a13f1
Diffstat (limited to 'include/image_upload.hpp')
-rw-r--r--include/image_upload.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/image_upload.hpp b/include/image_upload.hpp
index 0fff1ea03f..4defbb6682 100644
--- a/include/image_upload.hpp
+++ b/include/image_upload.hpp
@@ -16,7 +16,7 @@ namespace crow
namespace image_upload
{
-static std::unique_ptr<sdbusplus::bus::match::match> fwUpdateMatcher;
+static std::unique_ptr<sdbusplus::bus::match_t> fwUpdateMatcher;
inline void
uploadImageHandler(const crow::Request& req,
@@ -57,8 +57,8 @@ inline void
asyncResp->res.jsonValue["status"] = "error";
};
- std::function<void(sdbusplus::message::message&)> callback =
- [asyncResp](sdbusplus::message::message& m) {
+ std::function<void(sdbusplus::message_t&)> callback =
+ [asyncResp](sdbusplus::message_t& m) {
BMCWEB_LOG_DEBUG << "Match fired";
sdbusplus::message::object_path path;
@@ -84,7 +84,7 @@ inline void
fwUpdateMatcher = nullptr;
}
};
- fwUpdateMatcher = std::make_unique<sdbusplus::bus::match::match>(
+ fwUpdateMatcher = std::make_unique<sdbusplus::bus::match_t>(
*crow::connections::systemBus,
"interface='org.freedesktop.DBus.ObjectManager',type='signal',"
"member='InterfacesAdded',path='/xyz/openbmc_project/software'",