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: Ie36d234f4580029a7832a0cd179f3bb78a1a403f
diff --git a/dbus/dbushelper.hpp b/dbus/dbushelper.hpp
index 3f3e688..f65784c 100644
--- a/dbus/dbushelper.hpp
+++ b/dbus/dbushelper.hpp
@@ -21,7 +21,7 @@
static constexpr char availabilityIntf[] =
"xyz.openbmc_project.State.Decorator.Availability";
- explicit DbusHelper(sdbusplus::bus::bus bus) : _bus(std::move(bus))
+ explicit DbusHelper(sdbusplus::bus_t bus) : _bus(std::move(bus))
{}
~DbusHelper() = default;
@@ -58,7 +58,7 @@
auto valueResponseMsg = _bus.call(msg);
valueResponseMsg.read(result);
}
- catch (const sdbusplus::exception::exception& ex)
+ catch (const sdbusplus::exception_t& ex)
{
log::log<log::level::ERR>("Get Property Failed",
log::entry("WHAT=%s", ex.what()));
@@ -69,7 +69,7 @@
}
private:
- sdbusplus::bus::bus _bus;
+ sdbusplus::bus_t _bus;
};
} // namespace pid_control