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: I9541d521bf67882215a4a66dce020e38ac2df065
diff --git a/occ_manager.cpp b/occ_manager.cpp
index 22150c2..17cd403 100644
--- a/occ_manager.cpp
+++ b/occ_manager.cpp
@@ -253,7 +253,7 @@
return occs;
}
-int Manager::cpuCreated(sdbusplus::message::message& msg)
+int Manager::cpuCreated(sdbusplus::message_t& msg)
{
namespace fs = std::filesystem;
@@ -557,7 +557,7 @@
auto response = bus.call(method);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
constexpr auto ERROR_DUMP_DISABLED =
"xyz.openbmc_project.Dump.Create.Error.Disabled";
@@ -1116,7 +1116,7 @@
}
}
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
if (traceAltitudeErr)
{
@@ -1129,7 +1129,7 @@
}
// Callback function when ambient temperature changes
-void Manager::ambientCallback(sdbusplus::message::message& msg)
+void Manager::ambientCallback(sdbusplus::message_t& msg)
{
double currentTemp = 0;
uint8_t truncatedTemp = 0xFF;