Provide event name to triggers

Change-Id: Iec063b39a3e3e6a63038a2013f42e8a69ad9fadf
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/triggers.cpp b/control/triggers.cpp
index 5662f3f..410732d 100644
--- a/control/triggers.cpp
+++ b/control/triggers.cpp
@@ -14,6 +14,7 @@
 Trigger timer(TimerConf&& tConf)
 {
     return [tConf = std::move(tConf)](control::Zone& zone,
+                                      const std::string& name,
                                       const Group& group,
                                       const std::vector<Action>& actions)
     {
@@ -27,6 +28,7 @@
 {
     return [match = std::move(match),
             handler = std::move(handler)](control::Zone& zone,
+                                          const std::string& name,
                                           const Group& group,
                                           const std::vector<Action>& actions)
     {
@@ -80,6 +82,7 @@
 Trigger init(MethodHandler&& handler)
 {
     return [handler = std::move(handler)](control::Zone& zone,
+                                          const std::string& name,
                                           const Group& group,
                                           const std::vector<Action>& actions)
     {
diff --git a/control/types.hpp b/control/types.hpp
index 55be27d..4c3bec2 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -55,6 +55,7 @@
 using MethodHandler = std::function<void(Zone&, const Group&)>;
 using Action = std::function<void(Zone&, const Group&)>;
 using Trigger = std::function<void(Zone&,
+                                   const std::string&,
                                    const Group&,
                                    const std::vector<Action>&)>;
 
diff --git a/control/zone.cpp b/control/zone.cpp
index fc0f6f4..3a0b48b 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -326,6 +326,7 @@
         [this, &event](auto const& trigger)
         {
             trigger(*this,
+                    std::get<sseNamePos>(event),
                     std::get<groupPos>(event),
                     std::get<actionsPos>(event));
         }