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: I96286490697ce5d7fecc1c9c358f5f1d054137ec
diff --git a/version.hpp b/version.hpp
index 8f284dd..5c74f99 100644
--- a/version.hpp
+++ b/version.hpp
@@ -21,12 +21,12 @@
typedef std::function<void(std::string)> eraseFunc;
-using VersionInherit = sdbusplus::server::object::object<
+using VersionInherit = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Software::server::ExtendedVersion,
sdbusplus::xyz::openbmc_project::Software::server::Version,
sdbusplus::xyz::openbmc_project::Common::server::FilePath,
sdbusplus::xyz::openbmc_project::Inventory::Decorator::server::Compatible>;
-using DeleteInherit = sdbusplus::server::object::object<
+using DeleteInherit = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Object::server::Delete>;
class Version;
@@ -46,7 +46,7 @@
* @param[in] path - The D-Bus object path
* @param[in] parent - Parent object.
*/
- Delete(sdbusplus::bus::bus& bus, const std::string& path, Version& parent) :
+ Delete(sdbusplus::bus_t& bus, const std::string& path, Version& parent) :
DeleteInherit(bus, path.c_str(), action::emit_interface_added),
parent(parent)
{
@@ -80,7 +80,7 @@
* @param[in] compatibleNames - The device compatibility names
* @param[in] callback - The eraseFunc callback
*/
- Version(sdbusplus::bus::bus& bus, const std::string& objPath,
+ Version(sdbusplus::bus_t& bus, const std::string& objPath,
const std::string& versionString, VersionPurpose versionPurpose,
const std::string& extVersion, const std::string& filePath,
const std::vector<std::string>& compatibleNames, eraseFunc callback,