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: Ibd2a0b512bfb7caf65bfab64b271d194da520aac
diff --git a/sensordatahandler.hpp b/sensordatahandler.hpp
index 54bd909..89d00d0 100644
--- a/sensordatahandler.hpp
+++ b/sensordatahandler.hpp
@@ -46,7 +46,7 @@
* @param[in] path - interested path in the list of objects
* @return pair of service path and service
*/
-ServicePath getServiceAndPath(sdbusplus::bus::bus& bus,
+ServicePath getServiceAndPath(sdbusplus::bus_t& bus,
const std::string& interface,
const std::string& path = std::string());
@@ -181,7 +181,7 @@
template <typename T>
GetSensorResponse readingAssertion(const Info& sensorInfo)
{
- sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()};
+ sdbusplus::bus_t bus{ipmid_get_sd_bus_connection()};
GetSensorResponse response{};
enableScanning(&response);
@@ -210,7 +210,7 @@
template <typename T>
GetSensorResponse readingData(const Info& sensorInfo)
{
- sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()};
+ sdbusplus::bus_t bus{ipmid_get_sd_bus_connection()};
GetSensorResponse response{};