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: I9029cc722e7712633c15436bd3868d8c3209f567
diff --git a/control/zone.cpp b/control/zone.cpp
index be539bf..6e95477 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -47,7 +47,7 @@
using InternalFailure =
sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure;
-Zone::Zone(Mode mode, sdbusplus::bus::bus& bus, const std::string& path,
+Zone::Zone(Mode mode, sdbusplus::bus_t& bus, const std::string& path,
const sdeventplus::Event& event, const ZoneDefinition& def) :
ThermalObject(bus, path.c_str(), ThermalObject::action::defer_emit),
_bus(bus), _path(path),
@@ -415,8 +415,7 @@
[this, &eventGroup](auto const& action) { action(*this, eventGroup); });
}
-void Zone::handleEvent(sdbusplus::message::message& msg,
- const EventData* eventData)
+void Zone::handleEvent(sdbusplus::message_t& msg, const EventData* eventData)
{
// Handle the callback
std::get<eventHandlerPos> (*eventData)(_bus, msg, *this);
@@ -553,7 +552,7 @@
["Current"];
if (eData != nullptr)
{
- sdbusplus::message::message nullMsg{nullptr};
+ sdbusplus::message_t nullMsg{nullptr};
handleEvent(nullMsg, eData);
}
}