Move code to OEM
The commit moves publishing of system VPD and creation of asset tag to
OEM files.
System VPD and asset tag are specific to IBM systems, hence moved.
Change-Id: Id3c1a4da415c24ea74fba9cbf838ce45c6f14db4
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/oem-handler/ibm_handler.hpp b/vpd-manager/oem-handler/ibm_handler.hpp
index 9060dd9..d10323b 100644
--- a/vpd-manager/oem-handler/ibm_handler.hpp
+++ b/vpd-manager/oem-handler/ibm_handler.hpp
@@ -108,6 +108,27 @@
void performBackupAndRestore(types::VPDMapVariant& io_srcVpdMap);
/**
+ * @brief An API to parse and publish system VPD on D-Bus.
+ *
+ * @throw DataException, std::runtime_error
+ *
+ * @param[in] parsedVpdMap - Parsed VPD as a map.
+ */
+ void publishSystemVPD(const types::VPDMapVariant& i_parsedVpdMap);
+
+ /**
+ * @brief API to form asset tag string for the system.
+ *
+ * @param[in] i_parsedVpdMap - Parsed VPD map.
+ *
+ * @throw std::runtime_error
+ *
+ * @return - Formed asset tag string.
+ */
+ std::string createAssetTagString(
+ const types::VPDMapVariant& i_parsedVpdMap);
+
+ /**
* @brief Set timer to detect and set VPD collection status for the system.
*
* Collection of FRU VPD is triggered in a separate thread. Resulting in