summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-02-20 01:13:04 -0600
committerPatrick Williams <patrick@stwcx.xyz>2017-02-21 16:35:57 +0000
commit7c183aede5886a741e95b15fbd166badcb601481 (patch)
treec8aedcfc9773ebb3baeb7558c1260133d5478b71
parent10b7ea76c5ea0537a22be25ee82915a88c5a733f (diff)
downloadipmi-fru-parser-7c183aede5886a741e95b15fbd166badcb601481.zip
ipmi-fru-parser-7c183aede5886a741e95b15fbd166badcb601481.tar.gz
Add header to house commonly used types
Change-Id: I51f0decd8c71c4442556ce4d5fcfc10bd82efa48 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
-rw-r--r--types.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/types.hpp b/types.hpp
new file mode 100644
index 0000000..81caad6
--- /dev/null
+++ b/types.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <string>
+#include <map>
+#include <sdbusplus/server.hpp>
+
+namespace ipmi
+{
+namespace vpd
+{
+
+ using Path = std::string;
+
+ using Property = std::string;
+ using Value = sdbusplus::message::variant<bool, int64_t, std::string>;
+ using PropertyMap = std::map<Property, Value>;
+
+ using Interface = std::string;
+ using InterfaceMap = std::map<Interface, PropertyMap>;
+
+ using Object = sdbusplus::message::object_path;
+ using ObjectMap = std::map<Object, InterfaceMap>;
+
+} //namespace vpd
+} //namespace ipmi
OpenPOWER on IntegriCloud