Inband code update: send PLDM events up for all code update states
send pldm events to Host to respond to the code update commands.
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>
Change-Id: Iae90a4663d4c5ed20b3a8a6222edb6055a533589
diff --git a/libpldmresponder/oem_handler.hpp b/libpldmresponder/oem_handler.hpp
index ca51366..37d785e 100644
--- a/libpldmresponder/oem_handler.hpp
+++ b/libpldmresponder/oem_handler.hpp
@@ -49,18 +49,19 @@
* @param[in] entityInstance - entity instance
* @param[in] stateSetId - state set id
* @param[in] compEffecterCnt - composite effecter count
- * param[in] stateField - The state field data for each of the states,
+ * @param[in] stateField - The state field data for each of the states,
* equal to compEffecterCnt in number
+ * @param[in] effecterId - Effecter id
*
* @return - Success or failure in setting the states.Returns failure in
* terms of PLDM completion codes if atleast one state fails to
* be set
*/
-
- virtual int oemSetStateEffecterStatesHandler(
- EntityType entityType, EntityInstance entityInstance,
- StateSetId stateSetId, CompositeCount compEffecterCnt,
- const std::vector<set_effecter_state_field>& stateField) = 0;
+ virtual int OemSetStateEffecterStatesHandler(
+ uint16_t entityType, uint16_t entityInstance, uint16_t stateSetId,
+ uint8_t compEffecterCnt,
+ std::vector<set_effecter_state_field>& stateField,
+ uint16_t effecterId) = 0;
/** @brief Interface to generate the OEM PDRs
*
diff --git a/libpldmresponder/platform.cpp b/libpldmresponder/platform.cpp
index 24d1956..0e5b22d 100644
--- a/libpldmresponder/platform.cpp
+++ b/libpldmresponder/platform.cpp
@@ -260,9 +260,9 @@
entityInstance, stateSetId) &&
oemPlatformHandler != nullptr)
{
- rc = oemPlatformHandler->oemSetStateEffecterStatesHandler(
- entityType, entityInstance, stateSetId, compEffecterCnt,
- stateField);
+ rc = oemPlatformHandler->OemSetStateEffecterStatesHandler(
+ entityType, entityInstance, stateSetId, compEffecterCnt, stateField,
+ effecterId);
}
else
{