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: Idf165747d0fd6079ba217992f2c46a388ce2d906
diff --git a/callback-manager/src/callback_manager.cpp b/callback-manager/src/callback_manager.cpp
index 5050205..2ecf357 100644
--- a/callback-manager/src/callback_manager.cpp
+++ b/callback-manager/src/callback_manager.cpp
@@ -209,10 +209,10 @@
void createThresholdMatch(std::shared_ptr<sdbusplus::asio::connection>& conn)
{
- static sdbusplus::bus::match::match match(
- static_cast<sdbusplus::bus::bus&>(*conn),
+ static sdbusplus::bus::match_t match(
+ static_cast<sdbusplus::bus_t&>(*conn),
"type='signal',member='ThresholdAsserted'",
- [&conn](sdbusplus::message::message& message) {
+ [&conn](sdbusplus::message_t& message) {
std::string sensorName;
std::string thresholdInterface;
std::string event;
@@ -262,12 +262,12 @@
void createAssociationMatch(std::shared_ptr<sdbusplus::asio::connection>& conn)
{
- static sdbusplus::bus::match::match match(
- static_cast<sdbusplus::bus::bus&>(*conn),
+ static sdbusplus::bus::match_t match(
+ static_cast<sdbusplus::bus_t&>(*conn),
"type='signal',interface='org.freedesktop.DBus.Properties',"
"arg0namespace='" +
std::string(associationIface) + "'",
- [&conn](sdbusplus::message::message& message) {
+ [&conn](sdbusplus::message_t& message) {
if (message.get_path() == rootPath)
{
return; // it's us