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: I223d58649a21565678bd7ef78d955b30d3fd6d84
diff --git a/fault-monitor/operational-status-monitor.hpp b/fault-monitor/operational-status-monitor.hpp
index 3fa995d..3b67edb 100644
--- a/fault-monitor/operational-status-monitor.hpp
+++ b/fault-monitor/operational-status-monitor.hpp
@@ -39,7 +39,7 @@
*
* @param[in] bus - D-Bus object
*/
- explicit Monitor(sdbusplus::bus::bus& bus) :
+ explicit Monitor(sdbusplus::bus_t& bus) :
bus(bus),
matchSignal(bus,
"type='signal',member='PropertiesChanged', "
@@ -54,7 +54,7 @@
private:
/** @brief sdbusplus D-Bus connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief sdbusplus signal matches for Monitor */
sdbusplus::bus::match_t matchSignal;
@@ -70,7 +70,7 @@
*
* @param[in] msg - The D-Bus message contents
*/
- void matchHandler(sdbusplus::message::message& msg);
+ void matchHandler(sdbusplus::message_t& msg);
/**
* @brief From the Inventory D-Bus object, obtains the associated LED group