summaryrefslogtreecommitdiffstats
path: root/writefrudata.cpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-02-10 15:59:31 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2017-02-14 22:51:34 +0530
commit6eed4032cb2b08a8b9d41329fc3553a65269cbde (patch)
tree910352e3d3726b4f86c39d7b5bfee166439987a1 /writefrudata.cpp
parent19c617b7dbbcb065b1a283e184310f60096ff180 (diff)
downloadipmi-fru-parser-6eed4032cb2b08a8b9d41329fc3553a65269cbde.tar.gz
ipmi-fru-parser-6eed4032cb2b08a8b9d41329fc3553a65269cbde.zip
Create the generated FRU Map in cpp.
Change-Id: Id83220e5e2876f4112ba76d698b2062e2a08dd3d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'writefrudata.cpp')
-rw-r--r--writefrudata.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 00d5b5b..c5f2539 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -15,7 +15,6 @@
#include <mapper.h>
#include "frup.hpp"
#include "fru-area.hpp"
-#include "fru-gen.hpp"
#include <sdbusplus/server.hpp>
// OpenBMC System Manager dbus framework
@@ -24,13 +23,19 @@ const char *sys_intf_name = "org.openbmc.managers.System";
extern const FruMap frus;
+using Property = std::string;
+using Value = sdbusplus::message::variant<bool, int64_t, std::string>;
+// Association between property and its value
+using PropertyMap = std::map<Property, Value>;
+
+using Interface = std::string;
// Association between interface and the dbus property
-using InterfaceList = std::map<std::string,
- std::map<std::string, std::string>>;
+using InterfaceMap = std::map<Interface, PropertyMap>;
-// Association between property and its value
-using PropertiesList = std::map<std::string, std::string>;
+using Object = sdbusplus::message::object_path;
+// Association between object and the interfaces.
+using ObjectMap = std::map<Object, InterfaceMap>;
//----------------------------------------------------------------
// Constructor
OpenPOWER on IntegriCloud