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: Ieb6587e32446a758676f67d9c868289cc02e50bf
diff --git a/src/IpmbSensor.cpp b/src/IpmbSensor.cpp
index 69c1e46..88f6bb3 100644
--- a/src/IpmbSensor.cpp
+++ b/src/IpmbSensor.cpp
@@ -569,7 +569,7 @@
"GetManagedObjects");
}
-void reinitSensors(sdbusplus::message::message& message)
+void reinitSensors(sdbusplus::message_t& message)
{
constexpr const size_t reinitWaitSeconds = 2;
std::string objectName;
@@ -625,8 +625,8 @@
boost::asio::deadline_timer configTimer(io);
- std::function<void(sdbusplus::message::message&)> eventHandler =
- [&](sdbusplus::message::message&) {
+ std::function<void(sdbusplus::message_t&)> eventHandler =
+ [&](sdbusplus::message_t&) {
configTimer.expires_from_now(boost::posix_time::seconds(1));
// create a timer because normally multiple properties change
configTimer.async_wait([&](const boost::system::error_code& ec) {
@@ -642,15 +642,15 @@
});
};
- sdbusplus::bus::match::match configMatch(
- static_cast<sdbusplus::bus::bus&>(*systemBus),
+ sdbusplus::bus::match_t configMatch(
+ static_cast<sdbusplus::bus_t&>(*systemBus),
"type='signal',member='PropertiesChanged',path_namespace='" +
std::string(inventoryPath) + "',arg0namespace='" + configInterface +
"'",
eventHandler);
- sdbusplus::bus::match::match powerChangeMatch(
- static_cast<sdbusplus::bus::bus&>(*systemBus),
+ sdbusplus::bus::match_t powerChangeMatch(
+ static_cast<sdbusplus::bus_t&>(*systemBus),
"type='signal',interface='" + std::string(properties::interface) +
"',path='" + std::string(power::path) + "',arg0='" +
std::string(power::interface) + "'",