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: I7ae6214461bdf45c1a21fb702cc8bf5578d827c6
diff --git a/dump_manager.hpp b/dump_manager.hpp
index 1f5e3c7..5045ff4 100644
--- a/dump_manager.hpp
+++ b/dump_manager.hpp
@@ -13,7 +13,7 @@
using DumpCreateParams =
std::map<std::string, std::variant<std::string, uint64_t>>;
-using Iface = sdbusplus::server::object::object<
+using Iface = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>;
/** @class Manager
@@ -39,7 +39,7 @@
* @param[in] path - Path to attach at.
* @param[in] baseEntryPath - Base path of the dump entry.
*/
- Manager(sdbusplus::bus::bus& bus, const char* path,
+ Manager(sdbusplus::bus_t& bus, const char* path,
const std::string& baseEntryPath) :
Iface(bus, path, Iface::action::defer_emit),
bus(bus), lastEntryId(0), baseEntryPath(baseEntryPath)
@@ -64,7 +64,7 @@
void deleteAll() override;
/** @brief sdbusplus DBus bus connection. */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief Dump Entry dbus objects map based on entry id */
std::map<uint32_t, std::unique_ptr<Entry>> entries;