summaryrefslogtreecommitdiffstats
path: root/control/types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-01-23 15:32:26 -0600
committerMatthew Barth <msbarth@linux.vnet.ibm.com>2018-01-29 15:28:14 +0000
commit9a5b6994c745480a78ef658148cfd96dd3e12bdb (patch)
tree6df88f21a2f7f4f18c5acf5f501e6d0c4de1cf4e /control/types.hpp
parent7f7df319f500b5dac983e2159e7a6f12565d7358 (diff)
downloadphosphor-fan-presence-9a5b6994c745480a78ef658148cfd96dd3e12bdb.tar.gz
phosphor-fan-presence-9a5b6994c745480a78ef658148cfd96dd3e12bdb.zip
Support properties of type string
Properties used within set speed events may be of type string to trigger an action. These should be handled where the defined type attribute is given as 'std::string' and a parsed value is an instance of python str type. Resolves openbmc/openbmc#292 Change-Id: Ib188e7abc212062a1c61950abaa28434a4726521 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 b0b84f3..f7b75aa 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -30,7 +30,9 @@ constexpr auto conditionPropertyListPos = 1;
using Condition = std::tuple<std::string,
std::vector<ConditionProperty>>;
-using PropertyVariantType = sdbusplus::message::variant<bool, int64_t>;
+using PropertyVariantType = sdbusplus::message::variant<bool,
+ int64_t,
+ std::string>;
constexpr auto fanNamePos = 0;
constexpr auto sensorListPos = 1;
OpenPOWER on IntegriCloud