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-regulators/src/manager.hpp b/phosphor-regulators/src/manager.hpp
index c056b27..fdb8461 100644
--- a/phosphor-regulators/src/manager.hpp
+++ b/phosphor-regulators/src/manager.hpp
@@ -36,7 +36,7 @@
using Timer = sdeventplus::utility::Timer<sdeventplus::ClockId::Monotonic>;
-using ManagerObject = sdbusplus::server::object::object<
+using ManagerObject = sdbusplus::server::object_t<
phosphor::power::regulators::interface::ManagerInterface>;
class Manager : public ManagerObject
@@ -56,7 +56,7 @@
* @param bus the D-Bus bus
* @param event the sdevent event
*/
- Manager(sdbusplus::bus::bus& bus, const sdeventplus::Event& event);
+ Manager(sdbusplus::bus_t& bus, const sdeventplus::Event& event);
/**
* Implements the D-Bus "configure" method.
@@ -73,7 +73,7 @@
*
* @param msg Expanded sdbusplus message data
*/
- void interfacesAddedHandler(sdbusplus::message::message& msg);
+ void interfacesAddedHandler(sdbusplus::message_t& msg);
/**
* Implements the D-Bus "monitor" method.
@@ -203,7 +203,7 @@
/**
* The D-Bus bus
*/
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/**
* Event to loop on
@@ -228,7 +228,7 @@
/**
* List of D-Bus signal matches
*/
- std::vector<std::unique_ptr<sdbusplus::bus::match::match>> signals{};
+ std::vector<std::unique_ptr<sdbusplus::bus::match_t>> signals{};
/**
* Indicates whether regulator monitoring is enabled.