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/hypervisor_state_manager.hpp b/hypervisor_state_manager.hpp
index 929c1aa..7b005f6 100644
--- a/hypervisor_state_manager.hpp
+++ b/hypervisor_state_manager.hpp
@@ -14,7 +14,7 @@
namespace manager
{
-using HypervisorInherit = sdbusplus::server::object::object<
+using HypervisorInherit = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::State::server::Host>;
namespace server = sdbusplus::xyz::openbmc_project::State::server;
@@ -40,7 +40,7 @@
* @param[in] bus - The Dbus bus object
* @param[in] objPath - The Dbus object path
*/
- Hypervisor(sdbusplus::bus::bus& bus, const char* objPath) :
+ Hypervisor(sdbusplus::bus_t& bus, const char* objPath) :
HypervisorInherit(bus, objPath,
HypervisorInherit::action::emit_object_added),
bus(bus),
@@ -80,10 +80,10 @@
* @param[in] msg - Data associated with subscribed signal
*
*/
- void bootProgressChangeEvent(sdbusplus::message::message& msg);
+ void bootProgressChangeEvent(sdbusplus::message_t& msg);
/** @brief Persistent sdbusplus DBus bus connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief Watch BootProgress changes to know hypervisor state **/
sdbusplus::bus::match_t bootProgressChangeSignal;