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/src/sel_logger.cpp b/src/sel_logger.cpp
index b7f6a77..29cbd46 100644
--- a/src/sel_logger.cpp
+++ b/src/sel_logger.cpp
@@ -140,13 +140,13 @@
// Reload rsyslog so it knows to start new log files
boost::asio::io_service io;
auto dbus = std::make_shared<sdbusplus::asio::connection>(io);
- sdbusplus::message::message rsyslogReload = dbus->new_method_call(
+ sdbusplus::message_t rsyslogReload = dbus->new_method_call(
"org.freedesktop.systemd1", "/org/freedesktop/systemd1",
"org.freedesktop.systemd1.Manager", "ReloadUnit");
rsyslogReload.append("rsyslog.service", "replace");
try
{
- sdbusplus::message::message reloadResponse = dbus->call(rsyslogReload);
+ sdbusplus::message_t reloadResponse = dbus->call(rsyslogReload);
}
catch (const sdbusplus::exception_t& e)
{
@@ -289,17 +289,16 @@
ifaceAddSel->initialize();
#ifdef SEL_LOGGER_MONITOR_THRESHOLD_EVENTS
- sdbusplus::bus::match::match thresholdAssertMonitor =
+ sdbusplus::bus::match_t thresholdAssertMonitor =
startThresholdAssertMonitor(conn);
#endif
#ifdef REDFISH_LOG_MONITOR_PULSE_EVENTS
- sdbusplus::bus::match::match pulseEventMonitor =
- startPulseEventMonitor(conn);
+ sdbusplus::bus::match_t pulseEventMonitor = startPulseEventMonitor(conn);
#endif
#ifdef SEL_LOGGER_MONITOR_WATCHDOG_EVENTS
- sdbusplus::bus::match::match watchdogEventMonitor =
+ sdbusplus::bus::match_t watchdogEventMonitor =
startWatchdogEventMonitor(conn);
#endif