aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/src/bootenv.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/bootenv.h')
-rw-r--r--ubi-utils/src/bootenv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ubi-utils/src/bootenv.h b/ubi-utils/src/bootenv.h
index 86743ed..9003d70 100644
--- a/ubi-utils/src/bootenv.h
+++ b/ubi-utils/src/bootenv.h
@@ -230,6 +230,10 @@ int bootenv_size(bootenv_t env, size_t *size);
*/
int bootenv_read(FILE* fp, bootenv_t env, size_t size);
+/**
+ * @param ret_crc return value of crc of read data
+ */
+int bootenv_read_crc(FILE* fp, bootenv_t env, size_t size, uint32_t *ret_crc);
/**
* @brief Read bootenv data from an text/ascii file.
@@ -250,6 +254,11 @@ int bootenv_read_txt(FILE* fp, bootenv_t env);
int bootenv_write(FILE* fp, bootenv_t env);
/**
+ * @param ret_crc return value of crc of read data
+ */
+int bootenv_write_crc(FILE* fp, bootenv_t env, uint32_t* ret_crc);
+
+/**
* @brief Write a bootenv structure to the given location (text).
* @param fp Filepointer to text file.
* @param env Bootenv structure which shall be written.