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: I9029cc722e7712633c15436bd3868d8c3209f567
diff --git a/control/json/manager.hpp b/control/json/manager.hpp
index 78963a4..5b6aaac 100644
--- a/control/json/manager.hpp
+++ b/control/json/manager.hpp
@@ -93,8 +93,8 @@
* Signal handler function that handles parsing a signal's message for a
* particular signal object and stores the results in the manager
*/
-using SignalHandler = std::function<bool(sdbusplus::message::message&,
- const SignalObject&, Manager&)>;
+using SignalHandler =
+ std::function<bool(sdbusplus::message_t&, const SignalObject&, Manager&)>;
/**
* Package of data required when a signal is received
* Tuple constructed of:
@@ -465,7 +465,7 @@
* @param[in] msg - Signal message containing the signal's data
* @param[in] pkgs - Signal packages associated to the signal being handled
*/
- void handleSignal(sdbusplus::message::message& msg,
+ void handleSignal(sdbusplus::message_t& msg,
const std::vector<SignalPkg>* pkgs);
/**
@@ -593,13 +593,13 @@
void insertFilteredObjects(ManagedObjects& ref);
/* The sdbusplus bus object to use */
- sdbusplus::bus::bus& _bus;
+ sdbusplus::bus_t& _bus;
/* The sdeventplus even loop to use */
sdeventplus::Event _event;
/* The sdbusplus manager object to set the ObjectManager interface */
- sdbusplus::server::manager::manager _mgr;
+ sdbusplus::server::manager_t _mgr;
/* Whether loading the config files is allowed or not */
bool _loadAllowed;