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: If2c7da2a8105c39fb0eadf0a86337165b0fe4aa1
diff --git a/src/fru_device.cpp b/src/fru_device.cpp
index b4c3668..b503d80 100644
--- a/src/fru_device.cpp
+++ b/src/fru_device.cpp
@@ -1398,8 +1398,8 @@
});
iface->initialize();
- std::function<void(sdbusplus::message::message & message)> eventHandler =
- [&](sdbusplus::message::message& message) {
+ std::function<void(sdbusplus::message_t & message)> eventHandler =
+ [&](sdbusplus::message_t& message) {
std::string objectName;
boost::container::flat_map<
std::string,
@@ -1420,8 +1420,8 @@
}
};
- sdbusplus::bus::match::match powerMatch = sdbusplus::bus::match::match(
- static_cast<sdbusplus::bus::bus&>(*systemBus),
+ sdbusplus::bus::match_t powerMatch = sdbusplus::bus::match_t(
+ static_cast<sdbusplus::bus_t&>(*systemBus),
"type='signal',interface='org.freedesktop.DBus.Properties',path='/xyz/"
"openbmc_project/state/"
"host0',arg0='xyz.openbmc_project.State.Host'",