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/oem_ibm_handler.hpp b/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
index ce69cf1..6c1983c 100644
--- a/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
+++ b/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
@@ -41,11 +41,11 @@
setEventReceiverCnt = 0;
using namespace sdbusplus::bus::match::rules;
- hostOffMatch = std::make_unique<sdbusplus::bus::match::match>(
+ hostOffMatch = std::make_unique<sdbusplus::bus::match_t>(
pldm::utils::DBusHandler::getBus(),
propertiesChanged("/xyz/openbmc_project/state/host0",
"xyz.openbmc_project.State.Host"),
- [this](sdbusplus::message::message& msg) {
+ [this](sdbusplus::message_t& msg) {
pldm::utils::DbusChangedProps props{};
std::string intf;
msg.read(intf, props);
@@ -208,13 +208,13 @@
private:
/** @brief D-Bus property changed signal match for CurrentPowerState*/
- std::unique_ptr<sdbusplus::bus::match::match> chassisOffMatch;
+ std::unique_ptr<sdbusplus::bus::match_t> chassisOffMatch;
/** @brief PLDM request handler */
pldm::requester::Handler<pldm::requester::Request>* handler;
/** @brief D-Bus property changed signal match */
- std::unique_ptr<sdbusplus::bus::match::match> hostOffMatch;
+ std::unique_ptr<sdbusplus::bus::match_t> hostOffMatch;
bool hostOff = true;