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: I9cedddf4dc9b224ecbc2f68e6b00c0ab1885a826
diff --git a/manager.hpp b/manager.hpp
index 8ccea4a..03229fb 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -27,7 +27,7 @@
public:
friend class TestManager;
- explicit Manager(sdbusplus::bus::bus& bus);
+ explicit Manager(sdbusplus::bus_t& bus);
Manager(const Manager&) = delete;
Manager& operator=(const Manager&) = delete;
Manager(Manager&&) = delete;
@@ -36,10 +36,10 @@
private:
/** @brief Persistent sdbusplus DBus connection */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief The match of settings property change */
- std::vector<sdbusplus::bus::match::match> settingsMatches;
+ std::vector<sdbusplus::bus::match_t> settingsMatches;
/** @brief Settings objects of intereset */
settings::Objects settings;
@@ -81,7 +81,7 @@
*
* @return 0 on success, < 0 on failure.
*/
- int onSettingsChanged(sdbusplus::message::message& msg);
+ int onSettingsChanged(sdbusplus::message_t& msg);
/** @brief Notified on settings property changed
*