sdbusplus: remove usage of deprecated alias
The alias `server::match` has been deprecated since 2016. Use the new
alias under bus.
Change-Id: I21baf6b70401d996519b5940d0cd685535475a2f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/control/json/manager.hpp b/control/json/manager.hpp
index c783e44..23dda2b 100644
--- a/control/json/manager.hpp
+++ b/control/json/manager.hpp
@@ -107,11 +107,11 @@
* Tuple constructed of:
* std::unique_ptr<std::vector<SignalPkg>> =
* Pointer to list of the signal's packages
- * std::unique_ptr<sdbusplus::server::match::match> =
+ * std::unique_ptr<sdbusplus::bus::match_t> =
* Pointer to match holding the subscription to a signal
*/
using SignalData = std::tuple<std::unique_ptr<std::vector<SignalPkg>>,
- std::unique_ptr<sdbusplus::server::match::match>>;
+ std::unique_ptr<sdbusplus::bus::match_t>>;
/**
* @class Manager - Represents the fan control manager's configuration
diff --git a/control/json/triggers/signal.cpp b/control/json/triggers/signal.cpp
index 70bc8be..491c7a4 100644
--- a/control/json/triggers/signal.cpp
+++ b/control/json/triggers/signal.cpp
@@ -52,11 +52,11 @@
std::unique_ptr<std::vector<SignalPkg>> pkgs =
std::make_unique<std::vector<SignalPkg>>();
pkgs->emplace_back(std::move(signalPkg));
- std::unique_ptr<sdbusplus::server::match::match> ptrMatch = nullptr;
+ std::unique_ptr<sdbusplus::bus::match_t> ptrMatch = nullptr;
if (!match.empty())
{
// Subscribe to signal
- ptrMatch = std::make_unique<sdbusplus::server::match::match>(
+ ptrMatch = std::make_unique<sdbusplus::bus::match_t>(
mgr->getBus(), match.c_str(),
std::bind(std::mem_fn(&Manager::handleSignal), &(*mgr),
std::placeholders::_1, pkgs.get()));