API prototype to process powerVS systems

The commit provides prototype for the API which will be called before
collection status is set to completed. It will check for power VS
configuration and will update the VPD if required.

Change-Id: Ia1d30a58001bd97003de2306d1959c8e734c809a
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/include/manager.hpp b/vpd-manager/include/manager.hpp
index 4a6a9ef..e744f7a 100644
--- a/vpd-manager/include/manager.hpp
+++ b/vpd-manager/include/manager.hpp
@@ -260,6 +260,14 @@
      * @brief API to process VPD collection thread failed EEPROMs.
      */
     void processFailedEeproms();
+
+    /**
+     * @brief API to handle configuration w.r.t. PowerVS systems.
+     *
+     * Some FRUs VPD is specific to powerVS system. The API detects the
+     * powerVS configuration and updates the VPD accordingly.
+     */
+    void ConfigurePowerVsSystem();
 #endif
 
     /**
diff --git a/vpd-manager/src/manager.cpp b/vpd-manager/src/manager.cpp
index 87fcc30..7b22a69 100644
--- a/vpd-manager/src/manager.cpp
+++ b/vpd-manager/src/manager.cpp
@@ -287,6 +287,10 @@
             // cancel the timer
             l_timer.cancel();
             processFailedEeproms();
+
+            // update VPD for powerVS system.
+            ConfigurePowerVsSystem();
+
             m_interface->set_property("CollectionStatus",
                                       std::string("Completed"));
 
@@ -318,6 +322,12 @@
         }
     });
 }
+
+void Manager::ConfigurePowerVsSystem()
+{
+    // This API should check for required powerVS configuration and will
+    // update the VPD accordingly.
+}
 #endif
 
 int Manager::updateKeyword(const types::Path i_vpdPath,