Add support for processing start event triggers
Process application start event triggers' list of conditions on a group
and perform the defined actions.
This re-uses the following structs(and their necessary functions)
directly from phosphor-inventory-manager:
--struct PropertyConditionBase
--struct PropertyCondition
Change-Id: If4090299fe887ef940320091d4d4be9f6aa7dd29
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/src/monitor.hpp b/src/monitor.hpp
index 2fc91b5..aca64d8 100644
--- a/src/monitor.hpp
+++ b/src/monitor.hpp
@@ -23,9 +23,20 @@
explicit Monitor(sdbusplus::bus::bus& bus);
+ void processStart() noexcept;
+
+ void handleEvent(sdbusplus::message::message& msg,
+ const Event& event,
+ const std::tuple<std::vector<std::shared_ptr<Event>>,
+ std::vector<Action>>& eventDef);
+
private:
sdbusplus::bus::bus& bus;
+ static const std::vector<
+ std::tuple<std::vector<std::shared_ptr<Event>>,
+ std::vector<Action>>> events;
+
};
} // namespace monitoring