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-power-supply/psu_manager.hpp b/phosphor-power-supply/psu_manager.hpp
index 6f58eec..4b4171a 100644
--- a/phosphor-power-supply/psu_manager.hpp
+++ b/phosphor-power-supply/psu_manager.hpp
@@ -41,7 +41,7 @@
class PowerSystemInputs : public PowerSystemInputsObject
{
public:
- PowerSystemInputs(sdbusplus::bus::bus& bus, const std::string& path) :
+ PowerSystemInputs(sdbusplus::bus_t& bus, const std::string& path) :
PowerSystemInputsObject(bus, path.c_str())
{}
};
@@ -68,7 +68,7 @@
* @param[in] bus - D-Bus bus object
* @param[in] e - event object
*/
- PSUManager(sdbusplus::bus::bus& bus, const sdeventplus::Event& e);
+ PSUManager(sdbusplus::bus_t& bus, const sdeventplus::Event& e);
/**
* Get PSU properties from D-Bus, use that to build a power supply
@@ -138,7 +138,7 @@
/**
* The D-Bus object
*/
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/**
* The timer that runs to periodically check the power supplies.
@@ -207,7 +207,7 @@
*
* @param[in] msg - Data associated with the power state signal
*/
- void powerStateChanged(sdbusplus::message::message& msg);
+ void powerStateChanged(sdbusplus::message_t& msg);
/**
* @brief Callback for inventory property changes
@@ -216,7 +216,7 @@
*
* @param[in] msg - Data associated with the Present change signal
**/
- void presenceChanged(sdbusplus::message::message& msg);
+ void presenceChanged(sdbusplus::message_t& msg);
/**
* @brief Callback for entity-manager interface added
@@ -226,7 +226,7 @@
*
* @param[in] msg - Data associated with the interfaces added signal
*/
- void entityManagerIfaceAdded(sdbusplus::message::message& msg);
+ void entityManagerIfaceAdded(sdbusplus::message_t& msg);
/**
* @brief Adds properties to the inventory.