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: I5055fac459cb021ea94686e058e233bcc476a32d
diff --git a/subprojects/ncsid/src/net_config.cpp b/subprojects/ncsid/src/net_config.cpp
index 3b632c3..5b5ae93 100644
--- a/subprojects/ncsid/src/net_config.cpp
+++ b/subprojects/ncsid/src/net_config.cpp
@@ -75,8 +75,8 @@
bus(sdbusplus::bus::new_default())
{}
-sdbusplus::message::message
- PhosphorConfig::new_networkd_call(sdbusplus::bus::bus* dbus, bool get) const
+sdbusplus::message_t PhosphorConfig::new_networkd_call(sdbusplus::bus_t* dbus,
+ bool get) const
{
auto networkd_call =
dbus->new_method_call(NETWORK_SERVICE, iface_path_.c_str(),
diff --git a/subprojects/ncsid/src/net_config.h b/subprojects/ncsid/src/net_config.h
index 11ec90e..7aeb18b 100644
--- a/subprojects/ncsid/src/net_config.h
+++ b/subprojects/ncsid/src/net_config.h
@@ -72,8 +72,8 @@
virtual int set_nic_hostless(bool is_nic_hostless) override;
private:
- sdbusplus::message::message new_networkd_call(sdbusplus::bus::bus* dbus,
- bool get = false) const;
+ sdbusplus::message_t new_networkd_call(sdbusplus::bus_t* dbus,
+ bool get = false) const;
const std::string iface_name_;
const std::string iface_path_;
@@ -95,7 +95,7 @@
// Holds a reference to the bus for issuing commands to update network
// config
- sdbusplus::bus::bus bus;
+ sdbusplus::bus_t bus;
};
} // namespace net