Pass a bus connection to actions and filters
Prepare for outgoing calls from filters and actions.
Change-Id: Ic6255f51f8f4be9f25f2fd5321ee0b7703d60179
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/manager.cpp b/manager.cpp
index a5cdf89..16ed30a 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -188,14 +188,14 @@
for (auto& f : filters)
{
- if (!(*f)(msg, *this))
+ if (!(*f)(_bus, msg, *this))
{
return;
}
}
for (auto& action : actions)
{
- (*action)(*this);
+ (*action)(_bus, *this);
}
}