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: I3e9d6194f8cc1399acb8afb4348409f4d9781fef
diff --git a/src/main.cpp b/src/main.cpp
index a32dbfe..380d17d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -128,8 +128,8 @@
* that show up later.
*/
boost::asio::deadline_timer filterTimer(io);
- std::function<void(sdbusplus::message::message&)> eventHandler =
- [&](sdbusplus::message::message& message) {
+ std::function<void(sdbusplus::message_t&)> eventHandler =
+ [&](sdbusplus::message_t& message) {
if (message.is_method_error())
{
lg2::error("eventHandler callback method error");
@@ -159,8 +159,8 @@
});
};
- auto match = std::make_unique<sdbusplus::bus::match::match>(
- static_cast<sdbusplus::bus::bus&>(*conn),
+ auto match = std::make_unique<sdbusplus::bus::match_t>(
+ static_cast<sdbusplus::bus_t&>(*conn),
"type='signal',member='PropertiesChanged',path_namespace='" +
std::string("/xyz/openbmc_project/inventory") +
"',arg0namespace='" + estoraged::emmcConfigInterface + "'",