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: I41103c892db258a85640aa1442acd9a295c8a847
diff --git a/systemd_target_signal.cpp b/systemd_target_signal.cpp
index 5f7036f..8c76b97 100644
--- a/systemd_target_signal.cpp
+++ b/systemd_target_signal.cpp
@@ -34,7 +34,7 @@
{
this->bus.call_noreply(method);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
error("Failed to start BMC quiesce target, exception:{ERROR}", "ERROR",
e);
@@ -62,7 +62,7 @@
{
this->bus.call_noreply(method);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
error("Failed to create systemd target error, error:{ERROR_MSG}, "
"result:{RESULT}, exception:{ERROR}",
@@ -113,7 +113,7 @@
return (std::string{});
}
-void SystemdTargetLogging::systemdUnitChange(sdbusplus::message::message& msg)
+void SystemdTargetLogging::systemdUnitChange(sdbusplus::message_t& msg)
{
uint32_t id;
sdbusplus::message::object_path objPath;
@@ -136,8 +136,7 @@
return;
}
-void SystemdTargetLogging::processNameChangeSignal(
- sdbusplus::message::message& msg)
+void SystemdTargetLogging::processNameChangeSignal(sdbusplus::message_t& msg)
{
std::string name; // well-known
std::string old_owner; // unique-name
@@ -164,7 +163,7 @@
{
this->bus.call(method);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
// If error indicates systemd is not on dbus yet then do nothing.
// The systemdNameChangeSignals callback will detect when it is on