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: I86dfa77a53a306b0e868eeb82de30b270704c455
diff --git a/mainloop.hpp b/mainloop.hpp
index 530d4f3..a187b39 100644
--- a/mainloop.hpp
+++ b/mainloop.hpp
@@ -54,7 +54,7 @@
* At startup, the application will own a busname with
* the format <prefix>.hwmon<n>.
*/
- MainLoop(sdbusplus::bus::bus&& bus, const std::string& param,
+ MainLoop(sdbusplus::bus_t&& bus, const std::string& param,
const std::string& path, const std::string& devPath,
const char* prefix, const char* root,
const std::string& instanceId,
@@ -91,9 +91,9 @@
void init();
/** @brief sdbusplus bus client connection. */
- sdbusplus::bus::bus _bus;
+ sdbusplus::bus_t _bus;
/** @brief sdbusplus freedesktop.ObjectManager storage. */
- sdbusplus::server::manager::manager _manager;
+ sdbusplus::server::manager_t _manager;
/** @brief the parameter path used. */
std::string _pathParam;
/** @brief hwmon sysfs class path. */