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/association_manager.hpp b/association_manager.hpp
index eda7e05..8756f7e 100644
--- a/association_manager.hpp
+++ b/association_manager.hpp
@@ -30,7 +30,7 @@
using AssociationMap = std::map<std::string, EndpointsEntry>;
-using AssociationObject = sdbusplus::server::object::object<
+using AssociationObject = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Association::server::Definitions>;
using AssociationIfaceMap =
@@ -76,14 +76,14 @@
* @param[in] bus - sdbusplus object
* @param[in] jsonPath - path to the JSON File that contains associations
*/
- Manager(sdbusplus::bus::bus& bus, const std::string& jsonPath);
+ Manager(sdbusplus::bus_t& bus, const std::string& jsonPath);
/**
* @brief Constructor
*
* @param[in] bus - sdbusplus object
*/
- explicit Manager(sdbusplus::bus::bus& bus) :
+ explicit Manager(sdbusplus::bus_t& bus) :
Manager(bus, ASSOCIATIONS_FILE_PATH)
{}
@@ -214,7 +214,7 @@
/**
* @brief The sdbusplus bus object.
*/
- sdbusplus::bus::bus& _bus;
+ sdbusplus::bus_t& _bus;
/**
* @brief The path to the associations JSON File.