summaryrefslogtreecommitdiffstats
path: root/control/types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-09-26 09:15:56 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-11-17 15:43:28 +0000
commit336f18a541e93e2cc1719180df73ef8b357c962f (patch)
treee0edf72beb42a9c7a7a6ce9e46b768d1b7fcfffd /control/types.hpp
parent6088558429fbe5f723783b4220b6ac1c9096cde9 (diff)
downloadphosphor-fan-presence-336f18a541e93e2cc1719180df73ef8b357c962f.tar.gz
phosphor-fan-presence-336f18a541e93e2cc1719180df73ef8b357c962f.zip
Update event initialization
Using a null dbus message to the event signal will perform the necessary steps to initialize the event parameters using the given signal handler's function directly. i.e.) In the case for subscribing to PropertiesChanged signals, initially the given property must be read. When the PropertiesChanged signal struct is given a null message, it finds the property, reads the value, and then can perform the given signal handler function directly. This produces the same functional path as receiving a PropertiesChanged signal containing the property value within the message. Change-Id: I35575cfff66eb0305156be786cb1f5536d42bb1c Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/types.hpp')
-rw-r--r--control/types.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/control/types.hpp b/control/types.hpp
index f6b2b60..d3ddb16 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -56,8 +56,8 @@ using PrecondGroup = std::tuple<std::string,
constexpr auto intervalPos = 0;
using Timer = std::tuple<std::chrono::seconds>;
-constexpr auto signaturePos = 0;
-constexpr auto handlerObjPos = 1;
+constexpr auto sigMatchPos = 0;
+constexpr auto sigHandlerPos = 1;
using Signal = std::tuple<std::string, Handler>;
constexpr auto groupPos = 0;
@@ -70,9 +70,10 @@ using SetSpeedEvent = std::tuple<Group,
std::vector<Signal>>;
constexpr auto eventGroupPos = 0;
-constexpr auto eventHandlerPos = 1;
-constexpr auto eventActionsPos = 2;
-using EventData = std::tuple<Group, Handler, std::vector<Action>>;
+constexpr auto eventMatchPos = 1;
+constexpr auto eventHandlerPos = 2;
+constexpr auto eventActionsPos = 3;
+using EventData = std::tuple<Group, std::string, Handler, std::vector<Action>>;
constexpr auto timerTimerPos = 0;
using TimerEvent = std::tuple<phosphor::fan::util::Timer>;
OpenPOWER on IntegriCloud