oem-ibm: Add support for fileAckWithMetaData command
The commit adds handler support for the oem-ibm File I/O
fileAckWithMetaData command.
Tested: A fileAckWithMetaData command was honored.
Change-Id: Ief2cf7185ad47837a408124586e15895ef60e95b
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/oem/ibm/libpldmresponder/file_io.hpp b/oem/ibm/libpldmresponder/file_io.hpp
index cccd919..5d70f53 100644
--- a/oem/ibm/libpldmresponder/file_io.hpp
+++ b/oem/ibm/libpldmresponder/file_io.hpp
@@ -231,7 +231,11 @@
[this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) {
return this->newFileAvailable(request, payloadLength);
});
-
+ handlers.emplace(
+ PLDM_FILE_ACK_WITH_META_DATA,
+ [this](pldm_tid_t, const pldm_msg* request, size_t payloadLength) {
+ return this->fileAckWithMetaData(request, payloadLength);
+ });
resDumpMatcher = std::make_unique<sdbusplus::bus::match_t>(
pldm::utils::DBusHandler::getBus(),
sdbusplus::bus::match::rules::interfacesAdded() +
@@ -415,6 +419,15 @@
*/
Response newFileAvailable(const pldm_msg* request, size_t payloadLength);
+ /** @brief Handler for fileAckWithMetaData command
+ *
+ * @param[in] request - PLDM request msg
+ * @param[in] payloadLength - length of the message payload
+ *
+ * @return PLDM response message
+ */
+ Response fileAckWithMetaData(const pldm_msg* request, size_t payloadLength);
+
private:
oem_platform::Handler* oemPlatformHandler;
using DBusInterfaceAdded = std::vector<std::pair<