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/interfaces/manager_interface.cpp b/phosphor-regulators/src/interfaces/manager_interface.cpp
index 9e1cb34..81196c1 100644
--- a/phosphor-regulators/src/interfaces/manager_interface.cpp
+++ b/phosphor-regulators/src/interfaces/manager_interface.cpp
@@ -33,7 +33,7 @@
namespace interface
{
-ManagerInterface::ManagerInterface(sdbusplus::bus::bus& bus, const char* path) :
+ManagerInterface::ManagerInterface(sdbusplus::bus_t& bus, const char* path) :
_serverInterface(bus, path, interface, _vtable, this)
{}
@@ -44,7 +44,7 @@
{
try
{
- auto m = sdbusplus::message::message(msg);
+ auto m = sdbusplus::message_t(msg);
auto mgrObj = static_cast<ManagerInterface*>(context);
mgrObj->configure();
@@ -77,7 +77,7 @@
try
{
bool enable{};
- auto m = sdbusplus::message::message(msg);
+ auto m = sdbusplus::message_t(msg);
m.read(enable);
diff --git a/phosphor-regulators/src/interfaces/manager_interface.hpp b/phosphor-regulators/src/interfaces/manager_interface.hpp
index 3f262d3..6f4abe0 100644
--- a/phosphor-regulators/src/interfaces/manager_interface.hpp
+++ b/phosphor-regulators/src/interfaces/manager_interface.hpp
@@ -41,7 +41,7 @@
* @param[in] bus - Bus to attach to.
* @param[in] path - Path to attach at.
*/
- ManagerInterface(sdbusplus::bus::bus& bus, const char* path);
+ ManagerInterface(sdbusplus::bus_t& bus, const char* path);
/**
* @brief Implementation for the configure method