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: I0eb22958103519924e336a2260a4d48015848c3e
diff --git a/common_utility.cpp b/common_utility.cpp
index aeb7c1b..7b88b05 100644
--- a/common_utility.cpp
+++ b/common_utility.cpp
@@ -17,7 +17,7 @@
using namespace inventory;
using namespace phosphor::logging;
-std::string getService(sdbusplus::bus::bus& bus, const std::string& path,
+std::string getService(sdbusplus::bus_t& bus, const std::string& path,
const std::string& interface)
{
auto mapper = bus.new_method_call(mapperDestination, mapperObjectPath,
@@ -30,7 +30,7 @@
auto reply = bus.call(mapper);
reply.read(response);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
log<level::ERR>("D-Bus call exception",
entry("OBJPATH=%s", mapperObjectPath),