Move OEM specific code to respective class
The requirement of re-collecting FRUs at host state change is OEM
specific and should be hosted by respective OEM class.
Supporting APIs moved from manager class so that it can be used by OEM
class.
Change-Id: If0f218de89635158dda068a0a4951c29a5710cbb
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/include/worker.hpp b/vpd-manager/include/worker.hpp
index ccd9ca4..305045e 100644
--- a/vpd-manager/include/worker.hpp
+++ b/vpd-manager/include/worker.hpp
@@ -163,6 +163,24 @@
return m_failedEepromPaths;
}
+ /**
+ * @brief Collect single FRU VPD
+ * API can be used to perform VPD collection for the given FRU, only if the
+ * current state of the system matches with the state at which the FRU is
+ * allowed for VPD recollection.
+ *
+ * @param[in] i_dbusObjPath - D-bus object path
+ */
+ void collectSingleFruVpd(
+ const sdbusplus::message::object_path& i_dbusObjPath);
+
+ /**
+ * @brief Perform VPD recollection
+ * This api will trigger parser to perform VPD recollection for FRUs that
+ * can be replaced at standby.
+ */
+ void performVpdRecollection();
+
private:
/**
* @brief An API to parse and publish a FRU VPD over D-Bus.