summaryrefslogtreecommitdiffstats
path: root/fruread.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2018-01-19 16:23:10 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2018-02-12 14:24:33 +0530
commit003309731e2e1dbf22b85d8691357177747846f4 (patch)
treeafafbca763f0dbbc4fdc1f244ea90da06c1ef27b /fruread.hpp
parentd211702b0c149fc548825f1d1066eb8c73993377 (diff)
downloadphosphor-host-ipmid-003309731e2e1dbf22b85d8691357177747846f4.tar.gz
phosphor-host-ipmid-003309731e2e1dbf22b85d8691357177747846f4.zip
Inventory:- making changes in the mako and the C++ structure
As fru yaml would be having extra properties like entityID,entityInstance so changes were needed to make the change in the corresponding c++ structure. Change-Id: I314d1556cf07a3e212996615c1cd2f28fb6d9bba Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'fruread.hpp')
-rw-r--r--fruread.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/fruread.hpp b/fruread.hpp
index 203dfa0..e035a74 100644
--- a/fruread.hpp
+++ b/fruread.hpp
@@ -21,7 +21,16 @@ using DbusInterface = std::string;
using DbusInterfaceVec = std::vector<std::pair<DbusInterface, DbusPropertyVec>>;
using FruInstancePath = std::string;
-using FruInstanceVec = std::vector<std::pair<FruInstancePath, DbusInterfaceVec>>;
+
+struct FruInstance
+{
+ uint8_t entityID;
+ uint8_t entityInstance;
+ FruInstancePath path;
+ DbusInterfaceVec interfaces;
+};
+
+using FruInstanceVec = std::vector<FruInstance>;
using FruId = uint32_t;
using FruMap = std::map<FruId, FruInstanceVec>;
OpenPOWER on IntegriCloud