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: I0f252203148d6202f2b161c1c36baef0e1e49f0f
diff --git a/src/main.cpp b/src/main.cpp
index 01cedbf..f104f22 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -333,12 +333,12 @@
auto server = sdbusplus::asio::object_server(conn, true);
server.add_manager(phosphor::service::srcCfgMgrBasePath);
// Initialize the objects after systemd indicated startup finished.
- auto userUpdatedSignal = std::make_unique<sdbusplus::bus::match::match>(
- static_cast<sdbusplus::bus::bus&>(*conn),
+ auto userUpdatedSignal = std::make_unique<sdbusplus::bus::match_t>(
+ static_cast<sdbusplus::bus_t&>(*conn),
"type='signal',"
"member='StartupFinished',path='/org/freedesktop/systemd1',"
"interface='org.freedesktop.systemd1.Manager'",
- [&server, &conn](sdbusplus::message::message& /*msg*/) {
+ [&server, &conn](sdbusplus::message_t& /*msg*/) {
if (!unitQueryStarted)
{
unitQueryStarted = true;