oem ibm: support reading LIDs based on type
This commit reads the LIDs requested by Host. Host
sends request as T or P side. This commit evaluates the
current boot side and reads the appropriate LIDs.
Also this commit stores the image LIDs sent by Host
during an inband code update
Change-Id: Ia4bae68fa95f19bc228ef7002493d54abab3dc93
Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
diff --git a/oem/ibm/libpldmresponder/inband_code_update.hpp b/oem/ibm/libpldmresponder/inband_code_update.hpp
index 6607de0..237a662 100644
--- a/oem/ibm/libpldmresponder/inband_code_update.hpp
+++ b/oem/ibm/libpldmresponder/inband_code_update.hpp
@@ -75,6 +75,24 @@
/* @brief Method to set the oem platform handler in CodeUpdate class */
void setOemPlatformHandler(pldm::responder::oem_platform::Handler* handler);
+ /* @brief Method to check whether code update is
+ * going on
+ * @return - bool
+ */
+ bool isCodeUpdateInProgress()
+ {
+ return codeUpdateInProgress;
+ }
+
+ /* @brief Method to indicate whether code update
+ * is going on
+ * @param[in] progress - yes/no
+ */
+ void setCodeUpdateProgress(bool progress)
+ {
+ codeUpdateInProgress = progress;
+ }
+
virtual ~CodeUpdate()
{}