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: Ic63a70d32f4683e0bd92b625cc36c836aa8395a8
diff --git a/manager.hpp b/manager.hpp
index 744caa5..e580481 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -60,7 +60,7 @@
* @param[in] root - The DBus path on which to implement
* an inventory manager.
*/
- Manager(sdbusplus::bus::bus&&, const char*);
+ Manager(sdbusplus::bus_t&&, const char*);
using EventInfo =
std::tuple<std::vector<EventBasePtr>, std::vector<Action>>;
@@ -79,7 +79,7 @@
notify(std::map<sdbusplus::message::object_path, Object> objs) override;
/** @brief Event processing entry point. */
- void handleEvent(sdbusplus::message::message&, const Event& event,
+ void handleEvent(sdbusplus::message_t&, const Event& event,
const EventInfo& info);
/** @brief Drop one or more objects from DBus. */
@@ -201,10 +201,10 @@
std::vector<sdbusplus::bus::match_t> _matches;
/** @brief Persistent sdbusplus DBus bus connection. */
- sdbusplus::bus::bus _bus;
+ sdbusplus::bus_t _bus;
/** @brief sdbusplus org.freedesktop.DBus.ObjectManager reference. */
- sdbusplus::server::manager::manager _manager;
+ sdbusplus::server::manager_t _manager;
/** @brief A container of pimgen generated events and responses. */
static const Events _events;