summaryrefslogtreecommitdiff
path: root/tools/fit_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fit_common.h')
-rw-r--r--tools/fit_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/fit_common.h b/tools/fit_common.h
index 71e792e3c4..9e09624f64 100644
--- a/tools/fit_common.h
+++ b/tools/fit_common.h
@@ -10,6 +10,14 @@
#include "mkimage.h"
#include <image.h>
+/**
+ * Verify the format of FIT header pointed to by ptr
+ *
+ * @ptr: image header to be verified
+ * @image_size: size of while image
+ * @params: mkimage parameters
+ * @return 0 if OK, -1 on error
+ */
int fit_verify_header(unsigned char *ptr, int image_size,
struct image_tool_params *params);