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/power_supply.hpp b/phosphor-power-supply/power_supply.hpp
index 218e2d5..a4888ec 100644
--- a/phosphor-power-supply/power_supply.hpp
+++ b/phosphor-power-supply/power_supply.hpp
@@ -63,7 +63,7 @@
* @param[in] gpioLineName - The gpio-line-name to read for presence. See
* https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md
*/
- PowerSupply(sdbusplus::bus::bus& bus, const std::string& invpath,
+ PowerSupply(sdbusplus::bus_t& bus, const std::string& invpath,
std::uint8_t i2cbus, const std::uint16_t i2caddr,
const std::string& driver, const std::string& gpioLineName);
@@ -513,7 +513,7 @@
private:
/** @brief systemd bus member */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief Will be updated to the latest/lastvalue read from STATUS_WORD.*/
uint64_t statusWord = 0;
@@ -844,7 +844,7 @@
*
* @param[in] msg - Data associated with Present change signal
**/
- void inventoryChanged(sdbusplus::message::message& msg);
+ void inventoryChanged(sdbusplus::message_t& msg);
/**
* @brief Callback for inventory property added.
@@ -856,7 +856,7 @@
*
* @param[in] msg - Data associated with Present add signal
**/
- void inventoryAdded(sdbusplus::message::message& msg);
+ void inventoryAdded(sdbusplus::message_t& msg);
/**
* @brief Reads the pmbus MFR_POUT_MAX value.