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: If2c7da2a8105c39fb0eadf0a86337165b0fe4aa1
diff --git a/src/perform_scan.cpp b/src/perform_scan.cpp
index 959a819..bf3c750 100644
--- a/src/perform_scan.cpp
+++ b/src/perform_scan.cpp
@@ -91,7 +91,7 @@
sdbusplus::asio::object_server& objServer,
const std::string& path)
{
- static boost::container::flat_map<std::string, sdbusplus::bus::match::match>
+ static boost::container::flat_map<std::string, sdbusplus::bus::match_t>
dbusMatches;
auto find = dbusMatches.find(path);
@@ -100,13 +100,13 @@
return;
}
- std::function<void(sdbusplus::message::message & message)> eventHandler =
- [&](sdbusplus::message::message&) {
+ std::function<void(sdbusplus::message_t & message)> eventHandler =
+ [&](sdbusplus::message_t&) {
propertiesChangedCallback(systemConfiguration, objServer);
};
- sdbusplus::bus::match::match match(
- static_cast<sdbusplus::bus::bus&>(*systemBus),
+ sdbusplus::bus::match_t match(
+ static_cast<sdbusplus::bus_t&>(*systemBus),
"type='signal',member='PropertiesChanged',path='" + path + "'",
eventHandler);
dbusMatches.emplace(path, std::move(match));