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: I592583489212a3a7d3fc48cedac2a97489aa149b
diff --git a/src/mainapp.cpp b/src/mainapp.cpp
index ef9b353..7d64ec7 100644
--- a/src/mainapp.cpp
+++ b/src/mainapp.cpp
@@ -223,7 +223,7 @@
auto bus = sdbusplus::bus::new_default();
// Add systemd object manager.
- sdbusplus::server::manager::manager watchdogManager(bus, path.c_str());
+ sdbusplus::server::manager_t watchdogManager(bus, path.c_str());
// Attach the bus to sd_event to service user requests
bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL);
@@ -233,7 +233,7 @@
std::move(maybeFallback), minInterval,
defaultInterval);
- std::optional<sdbusplus::bus::match::match> watchPostcodeMatch;
+ std::optional<sdbusplus::bus::match_t> watchPostcodeMatch;
if (watchPostcodes)
{
watchPostcodeMatch.emplace(