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: I8e2242adb79be342562c9b7f3d2153dfdf578085
diff --git a/oem/ibm/libpldmresponder/file_io.hpp b/oem/ibm/libpldmresponder/file_io.hpp
index ee8074d..b1fe17c 100644
--- a/oem/ibm/libpldmresponder/file_io.hpp
+++ b/oem/ibm/libpldmresponder/file_io.hpp
@@ -229,12 +229,12 @@
payloadLength);
});
- resDumpMatcher = std::make_unique<sdbusplus::bus::match::match>(
+ resDumpMatcher = std::make_unique<sdbusplus::bus::match_t>(
pldm::utils::DBusHandler::getBus(),
sdbusplus::bus::match::rules::interfacesAdded() +
sdbusplus::bus::match::rules::argNpath(0, dumpObjPath),
[this, hostSockFd, hostEid, dbusImplReqester,
- handler](sdbusplus::message::message& msg) {
+ handler](sdbusplus::message_t& msg) {
std::map<
std::string,
std::map<std::string, std::variant<std::string, uint32_t>>>
@@ -272,12 +272,12 @@
}
}
});
- vmiCertMatcher = std::make_unique<sdbusplus::bus::match::match>(
+ vmiCertMatcher = std::make_unique<sdbusplus::bus::match_t>(
pldm::utils::DBusHandler::getBus(),
sdbusplus::bus::match::rules::interfacesAdded() +
sdbusplus::bus::match::rules::argNpath(0, certObjPath),
[this, hostSockFd, hostEid, dbusImplReqester,
- handler](sdbusplus::message::message& msg) {
+ handler](sdbusplus::message_t& msg) {
std::map<
std::string,
std::map<std::string, std::variant<std::string, uint32_t>>>
@@ -422,10 +422,10 @@
std::vector<std::pair<std::string, std::variant<std::string>>>>>;
std::unique_ptr<pldm::requester::oem_ibm::DbusToFileHandler>
dbusToFileHandler; //!< pointer to send request to Host
- std::unique_ptr<sdbusplus::bus::match::match>
+ std::unique_ptr<sdbusplus::bus::match_t>
resDumpMatcher; //!< Pointer to capture the interface added signal
//!< for new resource dump
- std::unique_ptr<sdbusplus::bus::match::match>
+ std::unique_ptr<sdbusplus::bus::match_t>
vmiCertMatcher; //!< Pointer to capture the interface added signal
//!< for new csr string
/** @brief PLDM request handler */