summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-07-25 21:52:10 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-08-11 17:29:08 +0000
commitcc8feb4f72d1c4388f9a81727e36eb1bbc754251 (patch)
tree926530b423367e29803fcfc9bfcb191962214b33 /types.hpp
parent18e9999232b76cc311bd307fd28adce0fb17db9a (diff)
downloadphosphor-host-ipmid-cc8feb4f72d1c4388f9a81727e36eb1bbc754251.tar.gz
phosphor-host-ipmid-cc8feb4f72d1c4388f9a81727e36eb1bbc754251.zip
Move dbus utility function to utils
Change-Id: Ief3d9ab2311a597670767cf9931913e5afef4fee Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/types.hpp b/types.hpp
index 801efd5..afe479e 100644
--- a/types.hpp
+++ b/types.hpp
@@ -16,8 +16,11 @@ using DbusService = std::string;
using DbusInterface = std::string;
using DbusObjectInfo = std::pair<DbusObjectPath, DbusService>;
using DbusProperty = std::string;
-using Value = sdbusplus::message::variant<bool, int64_t, uint8_t,
- std::string, uint32_t>;
+
+using Value = sdbusplus::message::variant<bool, uint8_t, int16_t,
+ uint16_t, int32_t, uint32_t,
+ int64_t, uint64_t, std::string>;
+
using PropertyMap = std::map<DbusProperty, Value>;
using ObjectTree = std::map<DbusObjectPath,
std::map<DbusService, std::vector<DbusInterface>>>;
OpenPOWER on IntegriCloud