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: I8c73d8de128b218ee4885a5e133314ad5d9a0ff8
diff --git a/dbusSensor.hpp b/dbusSensor.hpp
index bfda9b0..5c119a5 100644
--- a/dbusSensor.hpp
+++ b/dbusSensor.hpp
@@ -18,7 +18,7 @@
* @param[in] bus - Handle to system dbus
* @param[in] path - The Dbus path of sensor
*/
- DbusSensor(sdbusplus::bus::bus& bus, const std::string& path, void* ctx) :
+ DbusSensor(sdbusplus::bus_t& bus, const std::string& path, void* ctx) :
bus(bus), path(path),
signal(
bus,
@@ -51,7 +51,7 @@
private:
/** @brief sdbusplus bus client connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief complete path for sensor */
std::string path{};
/** @brief service name for the sensor daemon */