Enable filtering of signal matches
Provide tooling to enable specification of pre-implemented filtering
functors for signal matches.
Add a default 'none' filter to be used when a filter isn't specified.
Change-Id: I3549d8cf44c5f475626875fa94ca3ee8f74d6d26
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/manager.hpp b/manager.hpp
index 9b8338b..0c78f74 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -6,6 +6,7 @@
#include <vector>
#include <sdbusplus/server.hpp>
#include <xyz/openbmc_project/Inventory/Manager/server.hpp>
+#include "filters.hpp"
namespace phosphor
{
@@ -121,7 +122,7 @@
/** @brief sd_bus signal callback. */
void signal(sdbusplus::message::message &, auto &);
- using Event = std::tuple<const char *>;
+ using Event = std::tuple<const char *, filters::details::Wrapper>;
using SigArgs = std::vector<
std::unique_ptr<
std::tuple<