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: I29672cb229bd07022b00f52105ac1d50ecacca62
diff --git a/util.cpp b/util.cpp
index 9a43a50..28f59aa 100644
--- a/util.cpp
+++ b/util.cpp
@@ -12,7 +12,7 @@
{
using namespace phosphor::logging;
-std::string getService(sdbusplus::bus::bus& bus, const std::string& objectPath,
+std::string getService(sdbusplus::bus_t& bus, const std::string& objectPath,
const std::string& interface)
{
constexpr auto mapperBusBame = "xyz.openbmc_project.ObjectMapper";
@@ -27,7 +27,7 @@
auto reply = bus.call(method);
reply.read(response);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
log<level::ERR>(fmt::format("D-Bus call exception OBJPATH={}"
"INTERFACE={} EXCEPTION={}",