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: Ib15ce49ac136da396084ab09972dd132f02beeea
diff --git a/snmp_conf_manager.hpp b/snmp_conf_manager.hpp
index afbfad8..d8823f3 100644
--- a/snmp_conf_manager.hpp
+++ b/snmp_conf_manager.hpp
@@ -20,7 +20,7 @@
namespace details
{
-using CreateIface = sdbusplus::server::object::object<
+using CreateIface = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Network::Client::server::Create>;
} // namespace details
@@ -43,7 +43,7 @@
* @param[in] bus - Bus to attach to.
* @param[in] objPath - Path to attach at.
*/
- ConfManager(sdbusplus::bus::bus& bus, const char* objPath);
+ ConfManager(sdbusplus::bus_t& bus, const char* objPath);
/** @brief Function to create snmp manager details D-Bus object.
* @param[in] address- IP address/Hostname.
@@ -76,7 +76,7 @@
private:
/** @brief sdbusplus DBus bus object. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief Path of Object. */
std::string objectPath;