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.hpp b/manager.hpp
index 0c78f74..23d91da 100644
--- a/manager.hpp
+++ b/manager.hpp
@@ -7,6 +7,7 @@
#include <sdbusplus/server.hpp>
#include <xyz/openbmc_project/Inventory/Manager/server.hpp>
#include "filters.hpp"
+#include "actions.hpp"
namespace phosphor
{
@@ -122,7 +123,10 @@
/** @brief sd_bus signal callback. */
void signal(sdbusplus::message::message &, auto &);
- using Event = std::tuple<const char *, filters::details::Wrapper>;
+ using Event = std::tuple<
+ const char *,
+ filters::details::Wrapper,
+ actions::details::Wrapper>;
using SigArgs = std::vector<
std::unique_ptr<
std::tuple<