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.cpp b/manager.cpp
index 36d47a6..8acd0ec 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -153,6 +153,11 @@
void Manager::signal(sdbusplus::message::message &msg, auto &args)
{
// TODO - unstub
+ auto &filter = std::get<1>(args);
+
+ if(filter(msg)) {
+
+ }
}
#include "generated.hpp"