Add decode GetPDRRepositoryInfo resp API
Add decode response API for GetPDRRepositoryInfo command(0x50).
DSP0248_1.2.0 Table 67
Signed-off-by: Gilbert Chen <gilbertc@nvidia.com>
Change-Id: I000be34a217499340bee60dc412ccd72530a52db
diff --git a/include/libpldm/platform.h b/include/libpldm/platform.h
index f0eea51..c6f992d 100644
--- a/include/libpldm/platform.h
+++ b/include/libpldm/platform.h
@@ -1202,6 +1202,29 @@
uint32_t largest_record_size, uint8_t data_transfer_handle_timeout,
struct pldm_msg *msg);
+/** @brief Decode GetPDRRepositoryInfo response data
+ *
+ * @param[in] msg - Response message
+ * @param[in] payload_length - Length of response message payload
+ * @param[out] completion_code - PLDM completion code
+ * @param[out] repository_state - PLDM repository state
+ * @param[out] update_time - When the standard PDR repository data was
+ * originally created
+ * @param[out] oem_update_time - when OEM PDRs in the PDR Repository were
+ * originally created
+ * @param[out] record_count - Total number of PDRs in this repository
+ * @param[out] repository_size - Size of the PDR Repository in bytes
+ * @param[out] largest_record_size - Size of the largest record in the PDR
+ * Repository in bytes
+ * @param[out] data_transfer_handle_timeout - Data transmission timeout
+ * @return pldm_completion_codes
+ */
+int decode_get_pdr_repository_info_resp(
+ const struct pldm_msg *msg, size_t payload_length, uint8_t *completion_code,
+ uint8_t *repository_state, uint8_t *update_time, uint8_t *oem_update_time,
+ uint32_t *record_count, uint32_t *repository_size,
+ uint32_t *largest_record_size, uint8_t *data_transfer_handle_timeout);
+
/* GetPDR */
/** @brief Create a PLDM request message for GetPDR