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: I41103c892db258a85640aa1442acd9a295c8a847
diff --git a/bmc_state_manager.hpp b/bmc_state_manager.hpp
index 239ad10..026cb3f 100644
--- a/bmc_state_manager.hpp
+++ b/bmc_state_manager.hpp
@@ -15,7 +15,7 @@
namespace manager
{
-using BMCInherit = sdbusplus::server::object::object<
+using BMCInherit = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::State::server::BMC>;
namespace sdbusRule = sdbusplus::bus::match::rules;
@@ -33,7 +33,7 @@
* @param[in] busName - The Dbus name to own
* @param[in] objPath - The Dbus object path
*/
- BMC(sdbusplus::bus::bus& bus, const char* objPath) :
+ BMC(sdbusplus::bus_t& bus, const char* objPath) :
BMCInherit(bus, objPath, BMCInherit::action::defer_emit), bus(bus),
stateSignal(std::make_unique<decltype(stateSignal)::element_type>(
bus,
@@ -97,10 +97,10 @@
* @param[in] msg - Data associated with subscribed signal
*
*/
- int bmcStateChange(sdbusplus::message::message& msg);
+ int bmcStateChange(sdbusplus::message_t& msg);
/** @brief Persistent sdbusplus DBus bus connection. **/
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief Used to subscribe to dbus system state changes **/
std::unique_ptr<sdbusplus::bus::match_t> stateSignal;