pldm: inband code update: clear the image LIDs when pldm daemon comes up
Clear the LID_STAGING_DIR path when pldm daemon comes up. This function
will also be used during code update process.
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>
Change-Id: I2a757caaa3e204e4089235d9e3baf6d425f5bec5
diff --git a/oem/ibm/libpldmresponder/inband_code_update.hpp b/oem/ibm/libpldmresponder/inband_code_update.hpp
index 048f4d1..28c7c9c 100644
--- a/oem/ibm/libpldmresponder/inband_code_update.hpp
+++ b/oem/ibm/libpldmresponder/inband_code_update.hpp
@@ -94,6 +94,13 @@
codeUpdateInProgress = progress;
}
+ /** @brief Method to clear contents the LID staging directory that contains
+ * images such as host firmware and BMC.
+ * @param[in] dirPath - directory system path that has to be cleared
+ * @return none
+ */
+ void clearDirPath(const std::string& dirPath);
+
virtual ~CodeUpdate()
{}