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: I3fafbe552dcf47d16fc4002fe2dd8992ba59c465
diff --git a/include/pulse_event_monitor.hpp b/include/pulse_event_monitor.hpp
index bdd1ee4..54fdd56 100644
--- a/include/pulse_event_monitor.hpp
+++ b/include/pulse_event_monitor.hpp
@@ -19,10 +19,10 @@
#include <sel_logger.hpp>
#include <sensorutils.hpp>
-inline static sdbusplus::bus::match::match
+inline static sdbusplus::bus::match_t
startPulseEventMonitor(std::shared_ptr<sdbusplus::asio::connection> conn)
{
- auto pulseEventMatcherCallback = [](sdbusplus::message::message& msg) {
+ auto pulseEventMatcherCallback = [](sdbusplus::message_t& msg) {
std::string thresholdInterface;
boost::container::flat_map<std::string, std::variant<std::string>>
propertiesChanged;
@@ -67,8 +67,8 @@
}
};
- sdbusplus::bus::match::match pulseEventMatcher(
- static_cast<sdbusplus::bus::bus&>(*conn),
+ sdbusplus::bus::match_t pulseEventMatcher(
+ static_cast<sdbusplus::bus_t&>(*conn),
"type='signal',interface='org.freedesktop.DBus.Properties',member='"
"PropertiesChanged',arg0namespace='xyz.openbmc_project.State.Host'",
std::move(pulseEventMatcherCallback));