diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-08-04 12:58:02 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-08-07 15:30:10 -0500 |
commit | f6b76d8e8fbe71dbecad2189c28265ddff73c9ba (patch) | |
tree | 739d374f66620df2aa7da84df3bfc977562165ef /control/types.hpp | |
parent | 604329ef36d8ba2cd324f7132427d7e5724c074e (diff) | |
download | phosphor-fan-presence-f6b76d8e8fbe71dbecad2189c28265ddff73c9ba.tar.gz phosphor-fan-presence-f6b76d8e8fbe71dbecad2189c28265ddff73c9ba.zip |
Remove set speed event
Allows the complete removal of a set speed event from the zone. This is
done when any precondition defined for the event to be active is not
met any longer.
Change-Id: Idbec357f76f0fd7db9107e8c9d3e00461872c528
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/types.hpp')
-rw-r--r-- | control/types.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/control/types.hpp b/control/types.hpp index d45226f..bac5402 100644 --- a/control/types.hpp +++ b/control/types.hpp @@ -2,6 +2,7 @@ #include <string> #include <tuple> #include <vector> +#include <sdbusplus/server.hpp> namespace phosphor { @@ -67,6 +68,12 @@ constexpr auto eventHandlerPos = 1; constexpr auto eventActionPos = 2; using EventData = std::tuple<Group, Handler, Action>; +constexpr auto signalEventDataPos = 0; +constexpr auto signalMatchPos = 1; +using SignalEvent = + std::tuple<std::unique_ptr<EventData>, + std::unique_ptr<sdbusplus::server::match::match>>; + constexpr auto zoneNumPos = 0; constexpr auto fullSpeedPos = 1; constexpr auto floorSpeedPos = 2; |