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: Ief05bd757cffb1453e058a719ee4b060861752e7
diff --git a/phosphor-regulators/src/presence_service.hpp b/phosphor-regulators/src/presence_service.hpp
index 83b73c1..9520dbd 100644
--- a/phosphor-regulators/src/presence_service.hpp
+++ b/phosphor-regulators/src/presence_service.hpp
@@ -83,7 +83,7 @@
*
* @param bus D-Bus bus object
*/
- explicit DBusPresenceService(sdbusplus::bus::bus& bus) : bus{bus}
+ explicit DBusPresenceService(sdbusplus::bus_t& bus) : bus{bus}
{}
/** @copydoc PresenceService::clearCache() */
@@ -102,12 +102,12 @@
*
* @return true if exception type is expected, false otherwise
*/
- bool isExpectedException(const sdbusplus::exception::exception& e);
+ bool isExpectedException(const sdbusplus::exception_t& e);
/**
* D-Bus bus object.
*/
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/**
* Cached presence data.