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: I9cedddf4dc9b224ecbc2f68e6b00c0ab1885a826
diff --git a/manager.cpp b/manager.cpp
index ceaed7e..660102f 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -27,7 +27,7 @@
using namespace phosphor::logging;
-Manager::Manager(sdbusplus::bus::bus& bus) : bus(bus), settings(bus)
+Manager::Manager(sdbusplus::bus_t& bus) : bus(bus), settings(bus)
{
using namespace sdbusplus::bus::match::rules;
settingsMatches.emplace_back(
@@ -52,7 +52,7 @@
onTimeModeChanged(value);
}
-int Manager::onSettingsChanged(sdbusplus::message::message& msg)
+int Manager::onSettingsChanged(sdbusplus::message_t& msg)
{
using Interface = std::string;
using Property = std::string;
@@ -86,7 +86,7 @@
bus.call_noreply(method);
lg2::info("Updated NTP setting: {ENABLED}", "ENABLED", isNtp);
}
- catch (const sdbusplus::exception::exception& ex)
+ catch (const sdbusplus::exception_t& ex)
{
lg2::error("Failed to update NTP setting: {ERROR}", "ERROR", ex);
}