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
Change-Id: I47fca4c5cc35086034911f026c2c48d28136db5f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libpldmresponder/test/libpldmresponder_bios_config_test.cpp b/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
index d70a961..fcbb09f 100644
--- a/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_bios_config_test.cpp
@@ -83,8 +83,7 @@
MockBiosSystemConfig(const pldm::utils::DBusHandler* dBusIntf) :
pldm::responder::oem_bios::Handler(dBusIntf)
{}
- MOCK_METHOD(void, ibmCompatibleAddedCallback,
- (sdbusplus::message::message&), ());
+ MOCK_METHOD(void, ibmCompatibleAddedCallback, (sdbusplus::message_t&), ());
MOCK_METHOD(std::optional<std::string>, getPlatformName, ());
};
diff --git a/oem/ibm/libpldmresponder/bios_oem_ibm.cpp b/oem/ibm/libpldmresponder/bios_oem_ibm.cpp
index 308eac1..54b90fd 100644
--- a/oem/ibm/libpldmresponder/bios_oem_ibm.cpp
+++ b/oem/ibm/libpldmresponder/bios_oem_ibm.cpp
@@ -63,7 +63,7 @@
* @param[in] msg - Data associated with subscribed signal
*/
void pldm::responder::oem::ibm::bios::Handler::ibmCompatibleAddedCallback(
- sdbusplus::message::message& msg)
+ sdbusplus::message_t& msg)
{
sdbusplus::message::object_path path;
diff --git a/oem/ibm/libpldmresponder/bios_oem_ibm.hpp b/oem/ibm/libpldmresponder/bios_oem_ibm.hpp
index 242241b..ba76a95 100644
--- a/oem/ibm/libpldmresponder/bios_oem_ibm.hpp
+++ b/oem/ibm/libpldmresponder/bios_oem_ibm.hpp
@@ -42,7 +42,7 @@
pldm::responder::bios::Handler* biosHandler;
/** @brief D-Bus Interface added signal match for Entity Manager */
- std::unique_ptr<sdbusplus::bus::match::match> ibmCompatibleMatchConfig;
+ std::unique_ptr<sdbusplus::bus::match_t> ibmCompatibleMatchConfig;
/** @brief D-Bus Interface object*/
const pldm::utils::DBusHandler* dBusIntf;
@@ -52,7 +52,7 @@
*
* @param[in] msg - Data associated with subscribed signal
*/
- void ibmCompatibleAddedCallback(sdbusplus::message::message& msg);
+ void ibmCompatibleAddedCallback(sdbusplus::message_t& msg);
};
} // namespace oem::ibm::bios