summaryrefslogtreecommitdiffstats
path: root/control/types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-10-04 12:59:50 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-11-17 13:14:11 -0600
commit7b7ceb8deb48d6d5833b02bc33987fca2e647a68 (patch)
tree3334d51f13d34172db031d011d217b700eb50f2b /control/types.hpp
parent5a302576091fb182b57aab482a4731655295046f (diff)
downloadphosphor-fan-presence-7b7ceb8deb48d6d5833b02bc33987fca2e647a68.tar.gz
phosphor-fan-presence-7b7ceb8deb48d6d5833b02bc33987fca2e647a68.zip
Add timer type for set speed event timers
This is the first step towards allowing timer driven and/or wrapped actions where the timer interval and type will be defined by the user. Change-Id: If008fda5a2b73117e869f93223e0bfe61290f858 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/types.hpp')
-rw-r--r--control/types.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/control/types.hpp b/control/types.hpp
index 915b8b4..0d7610c 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -58,7 +58,9 @@ constexpr auto hasOwnerPos = 1;
using Service = std::tuple<std::string, bool>;
constexpr auto intervalPos = 0;
-using Timer = std::tuple<std::chrono::seconds>;
+constexpr auto typePos = 1;
+using Timer = std::tuple<std::chrono::seconds,
+ util::Timer::TimerType>;
constexpr auto sigMatchPos = 0;
constexpr auto sigHandlerPos = 1;
OpenPOWER on IntegriCloud