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: Ie7375047bd567aa052d3bd35a6dd7008779a05b4
diff --git a/src/appcommands.cpp b/src/appcommands.cpp
index 10e3d13..1d61889 100644
--- a/src/appcommands.cpp
+++ b/src/appcommands.cpp
@@ -43,7 +43,7 @@
static constexpr const char* bmcStateReadyStr =
"xyz.openbmc_project.State.BMC.BMCState.Ready";
-static std::unique_ptr<sdbusplus::bus::match::match> bmcStateChangedSignal;
+static std::unique_ptr<sdbusplus::bus::match_t> bmcStateChangedSignal;
static uint8_t bmcDeviceBusy = true;
int initBMCDeviceState(ipmi::Context::ptr ctx)
@@ -78,11 +78,11 @@
// BMC state may change runtime while doing firmware udpate.
// Register for property change signal to update state.
- bmcStateChangedSignal = std::make_unique<sdbusplus::bus::match::match>(
+ bmcStateChangedSignal = std::make_unique<sdbusplus::bus::match_t>(
*(ctx->bus),
sdbusplus::bus::match::rules::propertiesChanged(objInfo.first,
bmcStateIntf),
- [](sdbusplus::message::message& msg) {
+ [](sdbusplus::message_t& msg) {
std::map<std::string, std::variant<std::string>> props;
std::vector<std::string> inVal;
std::string iface;