sensor: add missing header for sdbusplus::bus::match
Telemetry doesn't seem to compile with the latest version of sdbusplus
because of a missing header file. Add this in.
Also, recently sdbusplus added short-named aliases for many types, so
switch match::match to just match_t.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4946edfa39db741bab8e30ffd77f03bf59c4d6f3
diff --git a/src/sensor.hpp b/src/sensor.hpp
index 23c3d5c..3393b06 100644
--- a/src/sensor.hpp
+++ b/src/sensor.hpp
@@ -7,6 +7,7 @@
#include <boost/asio/high_resolution_timer.hpp>
#include <sdbusplus/asio/connection.hpp>
+#include <sdbusplus/bus/match.hpp>
#include <memory>
@@ -51,5 +52,5 @@
std::vector<std::weak_ptr<interfaces::SensorListener>> listeners;
uint64_t timestamp = 0;
std::optional<double> value;
- std::unique_ptr<sdbusplus::bus::match::match> signalMonitor;
+ std::unique_ptr<sdbusplus::bus::match_t> signalMonitor;
};