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/system_configuration.hpp b/src/system_configuration.hpp
index 0bc1dab..f5289ce 100644
--- a/src/system_configuration.hpp
+++ b/src/system_configuration.hpp
@@ -13,7 +13,7 @@
using SystemConfigIntf =
sdbusplus::xyz::openbmc_project::Network::server::SystemConfiguration;
-using Iface = sdbusplus::server::object::object<SystemConfigIntf>;
+using Iface = sdbusplus::server::object_t<SystemConfigIntf>;
class Manager; // forward declaration of network manager.
@@ -37,7 +37,7 @@
* @param[in] objPath - Path to attach at.
* @param[in] parent - Parent object.
*/
- SystemConfiguration(sdbusplus::bus::bus& bus, const std::string& objPath);
+ SystemConfiguration(sdbusplus::bus_t& bus, const std::string& objPath);
/** @brief set the hostname of the system.
* @param[in] name - host name of the system.
@@ -51,7 +51,7 @@
std::string getHostNameFromSystem() const;
/** @brief Persistent sdbusplus DBus bus connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
};
} // namespace network