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/item_updater.hpp b/item_updater.hpp
index ccacd28..c50d9de 100644
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -20,7 +20,7 @@
namespace updater
{
-using ItemUpdaterInherit = sdbusplus::server::object::object<
+using ItemUpdaterInherit = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Common::server::FactoryReset,
sdbusplus::xyz::openbmc_project::Control::server::FieldMode,
sdbusplus::xyz::openbmc_project::Association::server::Definitions,
@@ -51,7 +51,7 @@
*
* @param[in] bus - The D-Bus bus object
*/
- ItemUpdater(sdbusplus::bus::bus& bus, const std::string& path) :
+ ItemUpdater(sdbusplus::bus_t& bus, const std::string& path) :
ItemUpdaterInherit(bus, path.c_str(),
ItemUpdaterInherit::action::defer_emit),
bus(bus), helper(bus),
@@ -180,7 +180,7 @@
*
* @param[in] msg - Data associated with subscribed signal
*/
- void createActivation(sdbusplus::message::message& msg);
+ void createActivation(sdbusplus::message_t& msg);
/**
* @brief Validates the presence of SquashFS image in the image dir.
@@ -225,7 +225,7 @@
void createFunctionalAssociation(const std::string& path);
/** @brief Persistent sdbusplus D-Bus bus connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief The helper of image updater. */
Helper helper;