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: I3be9475e7639ae8f52bceb1d5ff843a8dffde0a5
diff --git a/watchdog/watchdog_handler.cpp b/watchdog/watchdog_handler.cpp
index cb22446..a0641df 100644
--- a/watchdog/watchdog_handler.cpp
+++ b/watchdog/watchdog_handler.cpp
@@ -22,7 +22,7 @@
* @param progressStatus - dump progress status
* @return Always non-zero indicating no error, no cascading callbacks
*/
-uint dumpStatusChanged(sdbusplus::message::message& msg, std::string path,
+uint dumpStatusChanged(sdbusplus::message_t& msg, std::string path,
DumpProgressStatus& progressStatus)
{
// reply (msg) will be a property change message
@@ -125,7 +125,7 @@
constexpr auto interface = "xyz.openbmc_project.Dump.Create";
constexpr auto function = "CreateDump";
- sdbusplus::message::message method;
+ sdbusplus::message_t method;
if (0 == dbusMethod(path, interface, function, method))
{
@@ -165,7 +165,7 @@
// monitor dump progress
monitorDump(reply, dumpParameters.timeout);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
constexpr auto ERROR_DUMP_DISABLED =
"xyz.openbmc_project.Dump.Create.Error.Disabled";