summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2018-06-15 11:36:27 -0700
committerJames Feist <james.feist@linux.intel.com>2018-06-15 11:42:32 -0700
commit006d33c4a7e18abcba8cbbe9c24a10fb08c9b745 (patch)
treeef048f07fe74d4f60f69315a939511ff3092c59a /types.hpp
parent510eb9cc13a9437f9fc4965c080be8136d5e1320 (diff)
downloadphosphor-host-ipmid-006d33c4a7e18abcba8cbbe9c24a10fb08c9b745.tar.gz
phosphor-host-ipmid-006d33c4a7e18abcba8cbbe9c24a10fb08c9b745.zip
Add double to ipmi::Value type
ipmi::Value is used as the type in setDbusProperty. As properties are allowed to be doubles, add it to the type. Change-Id: I3d2dd5063100b8e73732740ce056fc476a7e1e44 Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/types.hpp b/types.hpp
index eb4cf8c..b6bab94 100644
--- a/types.hpp
+++ b/types.hpp
@@ -16,9 +16,9 @@ using DbusInterface = std::string;
using DbusObjectInfo = std::pair<DbusObjectPath, DbusService>;
using DbusProperty = std::string;
-using Value = sdbusplus::message::variant<bool, uint8_t, int16_t,
- uint16_t, int32_t, uint32_t,
- int64_t, uint64_t, std::string>;
+using Value = sdbusplus::message::variant<bool, uint8_t, int16_t, uint16_t,
+ int32_t, uint32_t, int64_t, uint64_t,
+ double, std::string>;
using PropertyMap = std::map<DbusProperty, Value>;
OpenPOWER on IntegriCloud