Added PowerSupply frus:
The dumpInventory and dumpObject options of VPD tool
now includes PowerSupply frus.
Signed-off-by: PriyangaRamasamy <priyanga24@in.ibm.com>
Change-Id: I6078d966780898a20a4c3e7c5cc61c3f4f2e6ddd
diff --git a/vpd_tool_impl.hpp b/vpd_tool_impl.hpp
index 6c9cf12..1ac96bd 100644
--- a/vpd_tool_impl.hpp
+++ b/vpd_tool_impl.hpp
@@ -104,6 +104,25 @@
*/
json parseInvJson(const json& jsObject, char flag, std::string fruPath);
+ /**
+ * @brief getPowerSupplyFruPath
+ * Get the power supply fru paths from Object mapper service.
+ *
+ * @param[out] powSuppFrus - Reference to a vector which has the power
+ * supply fru paths.
+ */
+ void getPowerSupplyFruPath(std::vector<std::string>& powSuppFrus);
+
+ /**
+ * @brief eraseInventoryPath
+ * Remove the INVENTORY_PATH - "/xyz/openbmc_project/inventory"
+ * for code convenience.
+ *
+ * @param[out] fru - Reference to the fru path whose INVENTORY_PATH is
+ * stripped off.
+ */
+ void eraseInventoryPath(std::string& fru);
+
public:
/**
* @brief Dump the complete inventory in JSON format
@@ -136,7 +155,7 @@
int updateKeyword();
/**
- * @brief A Constructor
+ * @brief Constructor
* Constructor is called during the
* object instantiation for dumpInventory option.
*/