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/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index ec89d5b..825faac 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -57,7 +57,7 @@
template <typename T>
static void
readProperty(const std::string& interface, const std::string& propertyName,
- const std::string& path, sdbusplus::bus::bus& bus, T& value)
+ const std::string& path, sdbusplus::bus_t& bus, T& value)
{
try
{
@@ -70,7 +70,7 @@
}
}
-TachSensor::TachSensor([[maybe_unused]] Mode mode, sdbusplus::bus::bus& bus,
+TachSensor::TachSensor([[maybe_unused]] Mode mode, sdbusplus::bus_t& bus,
Fan& fan, const std::string& id, bool hasTarget,
size_t funcDelay, const std::string& interface,
double factor, int64_t offset, size_t method,
@@ -261,7 +261,7 @@
}
}
-void TachSensor::handleTargetChange(sdbusplus::message::message& msg)
+void TachSensor::handleTargetChange(sdbusplus::message_t& msg)
{
readPropertyFromMessage(msg, _interface, FAN_TARGET_PROPERTY, _tachTarget);
@@ -277,7 +277,7 @@
}
}
-void TachSensor::handleTachChange(sdbusplus::message::message& msg)
+void TachSensor::handleTachChange(sdbusplus::message_t& msg)
{
readPropertyFromMessage(msg, util::FAN_SENSOR_VALUE_INTF,
FAN_VALUE_PROPERTY, _tachInput);