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: Ief1b330c4f623ecc1be771f36083780a12260834
diff --git a/src/network_manager.hpp b/src/network_manager.hpp
index f574891..7ca9939 100644
--- a/src/network_manager.hpp
+++ b/src/network_manager.hpp
@@ -29,7 +29,7 @@
{
template <typename T, typename U>
-using ServerObject = typename sdbusplus::server::object::object<T, U>;
+using ServerObject = typename sdbusplus::server::object_t<T, U>;
using VLANCreateIface = details::ServerObject<
sdbusplus::xyz::openbmc_project::Network::VLAN::server::Create,
@@ -55,8 +55,7 @@
* @param[in] objPath - Path to attach at.
* @param[in] dir - Network Configuration directory path.
*/
- Manager(sdbusplus::bus::bus& bus, const char* objPath,
- const std::string& dir);
+ Manager(sdbusplus::bus_t& bus, const char* objPath, const std::string& dir);
ObjectPath vlan(IntfName interfaceName, uint32_t id) override;
@@ -173,7 +172,7 @@
protected:
/** @brief Persistent sdbusplus DBus bus connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief Persistent map of EthernetInterface dbus objects and their names
*/