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/events.hpp b/events.hpp
index f591c42..80fcdae 100644
--- a/events.hpp
+++ b/events.hpp
@@ -16,11 +16,11 @@
namespace details
{
using FilterBase = holder::CallableBase <
- bool, sdbusplus::message::message&, Manager& >;
+ bool, sdbusplus::bus::bus&, sdbusplus::message::message&, Manager& >;
using FilterBasePtr = std::shared_ptr<FilterBase>;
template <typename T>
using Filter = holder::CallableHolder <
- T, bool, sdbusplus::message::message&, Manager& >;
+ T, bool, sdbusplus::bus::bus&, sdbusplus::message::message&, Manager& >;
/** @struct Event
* @brief Event object interface.
@@ -121,7 +121,10 @@
* Extract the property from the PropertiesChanged
* message and run the condition test.
*/
- bool operator()(sdbusplus::message::message& msg, Manager&) const
+ bool operator()(
+ sdbusplus::bus::bus&,
+ sdbusplus::message::message& msg,
+ Manager&) const
{
std::map <
std::string,