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: Ie36d234f4580029a7832a0cd179f3bb78a1a403f
diff --git a/dbus/dbuspassive.hpp b/dbus/dbuspassive.hpp
index bc16719..72ad9a5 100644
--- a/dbus/dbuspassive.hpp
+++ b/dbus/dbuspassive.hpp
@@ -41,12 +41,12 @@
{
public:
static std::unique_ptr<ReadInterface> createDbusPassive(
- sdbusplus::bus::bus& bus, const std::string& type,
- const std::string& id, std::unique_ptr<DbusHelperInterface> helper,
+ sdbusplus::bus_t& bus, const std::string& type, const std::string& id,
+ std::unique_ptr<DbusHelperInterface> helper,
const conf::SensorConfig* info,
const std::shared_ptr<DbusPassiveRedundancy>& redundancy);
- DbusPassive(sdbusplus::bus::bus& bus, const std::string& type,
+ DbusPassive(sdbusplus::bus_t& bus, const std::string& type,
const std::string& id,
std::unique_ptr<DbusHelperInterface> helper,
const SensorProperties& settings, bool failed,
@@ -94,6 +94,6 @@
std::chrono::high_resolution_clock::time_point _updated;
};
-int handleSensorValue(sdbusplus::message::message& msg, DbusPassive* owner);
+int handleSensorValue(sdbusplus::message_t& msg, DbusPassive* owner);
} // namespace pid_control