diff options
Diffstat (limited to 'utils/atj2137/atjboottool/afi.h')
-rw-r--r-- | utils/atj2137/atjboottool/afi.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/atj2137/atjboottool/afi.h b/utils/atj2137/atjboottool/afi.h index bb264cefdf..6756364d2a 100644 --- a/utils/atj2137/atjboottool/afi.h +++ b/utils/atj2137/atjboottool/afi.h | |||
@@ -23,7 +23,13 @@ | |||
23 | 23 | ||
24 | #include <stdint.h> | 24 | #include <stdint.h> |
25 | 25 | ||
26 | /* Check if a file looks like a FWU file */ | 26 | uint32_t afi_checksum(void *ptr, size_t size); |
27 | /* Unpack an AFI file: the callback function will be called once for each file in the archive with | ||
28 | * its name and content. If the callback returns a nonzero value, the function will stop and return | ||
29 | * that value. Returns 0 on success */ | ||
30 | typedef int (*afi_extract_callback_t)(const char *name, uint8_t *buf, size_t size); | ||
31 | int afi_unpack(uint8_t *buf, size_t size, afi_extract_callback_t cb); | ||
32 | /* Check if a file looks like an AFI file */ | ||
27 | bool afi_check(uint8_t *buf, size_t size); | 33 | bool afi_check(uint8_t *buf, size_t size); |
28 | 34 | ||
29 | #endif /* __AFI_H__ */ | 35 | #endif /* __AFI_H__ */ |