summaryrefslogtreecommitdiffstats
path: root/control/types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-06-02 16:29:09 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-06-26 09:19:56 -0500
commit9e741ed099a77ed2638b852027e751b90f67450d (patch)
tree30045f61eb643611f58b7337ee96655751414327 /control/types.hpp
parentcec5ab766709af9b713f94576b6f05bf63fc0718 (diff)
downloadphosphor-fan-presence-9e741ed099a77ed2638b852027e751b90f67450d.tar.gz
phosphor-fan-presence-9e741ed099a77ed2638b852027e751b90f67450d.zip
Properties stored of different types
Allow properties stored for processing events to be of types other than bool Change-Id: Ie1dde5aca562c9958bdff6fa3d1b19d3154b2c6d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/types.hpp')
-rw-r--r--control/types.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/control/types.hpp b/control/types.hpp
index 2b7509c..de56186 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -28,6 +28,8 @@ constexpr auto conditionPropertyListPos = 1;
using Condition = std::tuple<std::string,
std::vector<ConditionProperty>>;
+using PropertyVariantType = sdbusplus::message::variant<bool, int64_t>;
+
constexpr auto fanNamePos = 0;
constexpr auto sensorListPos = 1;
using FanDefinition = std::tuple<std::string, std::vector<std::string>>;
OpenPOWER on IntegriCloud