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_client.hpp b/snmp_client.hpp
index d6206ff..429c947 100644
--- a/snmp_client.hpp
+++ b/snmp_client.hpp
@@ -17,7 +17,7 @@
class ConfManager;
-using Ifaces = sdbusplus::server::object::object<
+using Ifaces = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Network::server::Client,
sdbusplus::xyz::openbmc_project::Object::server::Delete>;
@@ -45,7 +45,7 @@
* @param[in] address - IPaddress/Hostname.
* @param[in] port - network port.
*/
- Client(sdbusplus::bus::bus& bus, const char* objPath, ConfManager& parent,
+ Client(sdbusplus::bus_t& bus, const char* objPath, ConfManager& parent,
const std::string& address, uint16_t port);
/** @brief Constructor to put object onto bus at a dbus path.
@@ -53,7 +53,7 @@
* @param[in] objPath - Path to attach at.
* @param[in] parent - Parent D-bus Object.
*/
- Client(sdbusplus::bus::bus& bus, const char* objPath, ConfManager& parent) :
+ Client(sdbusplus::bus_t& bus, const char* objPath, ConfManager& parent) :
Ifaces(bus, objPath, Ifaces::action::defer_emit),
id(std::stol(std::filesystem::path(objPath).filename())), parent(parent)
{}