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: Ibc25db433a6926f7ee43ea83312c3ac14f480c33
diff --git a/log_manager.cpp b/log_manager.cpp
index 75bab7d..af4524c 100644
--- a/log_manager.cpp
+++ b/log_manager.cpp
@@ -278,7 +278,7 @@
auto reply = this->busLog.call(method);
reply.read(property);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
lg2::error("Error reading QuiesceOnHwError property: {ERROR}", "ERROR",
e);
@@ -312,7 +312,7 @@
}
}
-void Manager::onEntryResolve(sdbusplus::message::message& msg)
+void Manager::onEntryResolve(sdbusplus::message_t& msg)
{
using Interface = std::string;
using Property = std::string;
@@ -352,7 +352,7 @@
auto reply = this->busLog.call(method);
reply.read(property);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
// Quiescing the host is a "best effort" type function. If unable to
// read the host state or it comes back empty, just return.
@@ -404,7 +404,7 @@
// Register call back if log is resolved
using namespace sdbusplus::bus::match::rules;
auto entryPath = std::string(OBJ_ENTRY) + '/' + std::to_string(entryId);
- auto callback = std::make_unique<sdbusplus::bus::match::match>(
+ auto callback = std::make_unique<sdbusplus::bus::match_t>(
this->busLog,
propertiesChanged(entryPath, "xyz.openbmc_project.Logging.Entry"),
std::bind(std::mem_fn(&Manager::onEntryResolve), this,