Add actions
Provide tooling to enable specification of pre-implemented actions
to perform after a signal match.
Add a default 'noop' action to be used when an action isn't specified.
Change-Id: I8d3b1ef2cfc26771322820be931a61bba3ad8d94
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/manager.cpp b/manager.cpp
index 8acd0ec..8e185ac 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -152,11 +152,11 @@
void Manager::signal(sdbusplus::message::message &msg, auto &args)
{
- // TODO - unstub
auto &filter = std::get<1>(args);
+ auto &action = std::get<2>(args);
if(filter(msg)) {
-
+ action();
}
}