ibm-oem: NewFileAvailable: API change
The file length parameter of the NewFileAvailable command is now a
uint64 instead of a uint32, to allow file IO on files larger than 4GB.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Change-Id: I92a672f00665462c88d5f616f8bd2c835f666d7a
diff --git a/oem/ibm/test/libpldm_fileio_test.cpp b/oem/ibm/test/libpldm_fileio_test.cpp
index ae59fb2..ac6fde4 100644
--- a/oem/ibm/test/libpldm_fileio_test.cpp
+++ b/oem/ibm/test/libpldm_fileio_test.cpp
@@ -956,7 +956,7 @@
// Random value for fileHandle and length
uint16_t fileType = 0xFF;
uint32_t fileHandle = 0x12345678;
- uint32_t length = 0x13245768;
+ uint64_t length = 0x13245768;
request->file_type = fileType;
request->file_handle = fileHandle;
@@ -964,7 +964,7 @@
uint16_t retFileType = 0xFF;
uint32_t retFileHandle = 0;
- uint32_t retLength = 0;
+ uint64_t retLength = 0;
// Invoke decode the read file request
auto rc = decode_new_file_req(requestPtr, payload_length, &retFileType,
@@ -1004,7 +1004,7 @@
{
uint16_t fileType = 0;
uint32_t fileHandle = 0;
- uint32_t length = 0;
+ uint64_t length = 0;
// Request payload message is missing
auto rc = decode_new_file_req(NULL, 0, &fileType, &fileHandle, &length);