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: Ib85aa0eb518f1d0e5989d3e8f622f89a796a0082
diff --git a/dbus_sensor_tester/main.cpp b/dbus_sensor_tester/main.cpp
index 21a6fb5..e6937ed 100644
--- a/dbus_sensor_tester/main.cpp
+++ b/dbus_sensor_tester/main.cpp
@@ -98,14 +98,14 @@
boost::asio::steady_timer timer(io);
timer.expires_from_now(std::chrono::seconds(update_interval_seconds));
timer.async_wait(std::bind_front(on_loop, &timer));
- std::optional<sdbusplus::bus::match::match> match;
+ std::optional<sdbusplus::bus::match_t> match;
if (watch_sensor_updates) {
std::string expr = "type='signal',member='PropertiesChanged',path_"
"namespace='/xyz/openbmc_project/sensors'";
match.emplace(
- static_cast<sdbusplus::bus::bus &>(*connection), expr,
- [](sdbusplus::message::message &message) {
+ static_cast<sdbusplus::bus_t &>(*connection), expr,
+ [](sdbusplus::message_t &message) {
std::string objectName;
std::vector<std::pair<std::string, std::variant<double>>> result;
try {