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/pldm.cpp b/pldm.cpp
index a924132..6921861 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -46,7 +46,7 @@
auto responseMsg = bus.call(method);
responseMsg.read(pdrs);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
if (!tracedError)
{
@@ -129,7 +129,7 @@
}
}
-void Interface::sensorEvent(sdbusplus::message::message& msg)
+void Interface::sensorEvent(sdbusplus::message_t& msg)
{
if (!isOCCSensorCacheValid())
{
@@ -237,7 +237,7 @@
}
}
-void Interface::hostStateEvent(sdbusplus::message::message& msg)
+void Interface::hostStateEvent(sdbusplus::message_t& msg)
{
std::map<std::string, std::variant<std::string>> properties{};
std::string interface;
@@ -317,7 +317,7 @@
auto responseMsg = bus.call(method);
responseMsg.read(pdrs);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
log<level::ERR>("pldm: Failed to fetch the state effecter PDRs",
entry("ERROR=%s", e.what()));
@@ -528,7 +528,7 @@
mctpInstance.value())
.c_str());
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
log<level::ERR>(
fmt::format("pldm: GetInstanceId failed: {}", e.what())