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: I96286490697ce5d7fecc1c9c358f5f1d054137ec
diff --git a/usb/usb_manager.cpp b/usb/usb_manager.cpp
index 2bab2de..196ab42 100644
--- a/usb/usb_manager.cpp
+++ b/usb/usb_manager.cpp
@@ -90,7 +90,7 @@
return;
}
-void USBManager::updateActivation(sdbusplus::message::message& msg)
+void USBManager::updateActivation(sdbusplus::message_t& msg)
{
std::map<std::string, std::map<std::string, std::variant<std::string>>>
interfaces;
diff --git a/usb/usb_manager.hpp b/usb/usb_manager.hpp
index 78e54aa..afb3cec 100644
--- a/usb/usb_manager.hpp
+++ b/usb/usb_manager.hpp
@@ -24,7 +24,7 @@
USBManager& operator=(const USBManager&) = delete;
USBManager& operator=(USBManager&&) = default;
- explicit USBManager(sdbusplus::bus::bus& bus, sdeventplus::Event& event,
+ explicit USBManager(sdbusplus::bus_t& bus, sdeventplus::Event& event,
const fs::path& devPath, const fs::path& usbPath) :
bus(bus),
event(event), devicePath(devPath), usbPath(usbPath),
@@ -56,7 +56,7 @@
*
* @param[in] msg - Data associated with subscribed signal
*/
- void updateActivation(sdbusplus::message::message& msg);
+ void updateActivation(sdbusplus::message_t& msg);
/** @brief Set Apply Time to OnReset.
*
@@ -71,7 +71,7 @@
private:
/** @brief Persistent sdbusplus DBus bus connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** sd event handler. */
sdeventplus::Event& event;