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: I41103c892db258a85640aa1442acd9a295c8a847
diff --git a/settings.hpp b/settings.hpp
index b54f202..8f2dcda 100644
--- a/settings.hpp
+++ b/settings.hpp
@@ -27,7 +27,7 @@
* @param[in] bus - The Dbus bus object
* @param[in] root - The root object path
*/
- explicit Objects(sdbusplus::bus::bus& bus, const Path& root = defaultRoot);
+ explicit Objects(sdbusplus::bus_t& bus, const Path& root = defaultRoot);
Objects(const Objects&) = delete;
Objects& operator=(const Objects&) = delete;
Objects(Objects&&) = delete;
@@ -58,7 +58,7 @@
Path powerRestorePolicyOneTime;
/** @brief The Dbus bus object */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
};
/** @class HostObjects
@@ -74,7 +74,7 @@
* @param[in] bus - The Dbus bus object
* @param[in] id - The Host id
*/
- HostObjects(sdbusplus::bus::bus& bus, size_t id);
+ HostObjects(sdbusplus::bus_t& bus, size_t id);
};
} // namespace settings