summaryrefslogtreecommitdiffstats
path: root/control/types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-09-11 16:07:58 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-09-18 10:35:10 -0500
commitf9201abb8ca5a30220b05f3bbaa2db9343699a80 (patch)
tree35643a2081fc4be8f9d9c1f1576b4211294b04f4 /control/types.hpp
parent6ad28430764b7d16ee7abcb9965b76ea5583008f (diff)
downloadphosphor-fan-presence-f9201abb8ca5a30220b05f3bbaa2db9343699a80.tar.gz
phosphor-fan-presence-f9201abb8ca5a30220b05f3bbaa2db9343699a80.zip
Support a list of actions for a set speed event
Each set speed event will contain a list of one-to-many actions to perform for the given event group's property. This reduces the amount of code generated and properly handles property changed events against the group. Change-Id: If2b8c0d0b8ecf6e1c974c43d96e1c6e9e952022b Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/types.hpp')
-rw-r--r--control/types.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/control/types.hpp b/control/types.hpp
index b788ac5..a670810 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -61,18 +61,18 @@ constexpr auto handlerObjPos = 1;
using PropertyChange = std::tuple<std::string, Handler>;
constexpr auto groupPos = 0;
-constexpr auto actionPos = 1;
+constexpr auto actionsPos = 1;
constexpr auto timerPos = 2;
constexpr auto propChangeListPos = 3;
using SetSpeedEvent = std::tuple<Group,
- Action,
+ std::vector<Action>,
Timer,
std::vector<PropertyChange>>;
constexpr auto eventGroupPos = 0;
constexpr auto eventHandlerPos = 1;
-constexpr auto eventActionPos = 2;
-using EventData = std::tuple<Group, Handler, Action>;
+constexpr auto eventActionsPos = 2;
+using EventData = std::tuple<Group, Handler, std::vector<Action>>;
constexpr auto timerTimerPos = 0;
using TimerEvent = std::tuple<phosphor::fan::util::Timer>;
OpenPOWER on IntegriCloud