diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-09-29 18:22:30 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-09-29 18:22:30 +0200 |
commit | ea679de8371e4e74fe4e78fb8df8e5df19efffdc (patch) | |
tree | c08cf8be057318313a3bcf040395826afe62566b /utils/atj2137/atjboottool/afi.h | |
parent | 95c32a505a7bfef2dcac2a975b1f5875f490c405 (diff) | |
download | rockbox-ea679de8371e4e74fe4e78fb8df8e5df19efffdc.tar.gz rockbox-ea679de8371e4e74fe4e78fb8df8e5df19efffdc.zip |
atjboottool: put afi and fw code in its own files
Change-Id: I16347ebee0f82d5fdf32f5aa8f955c07fe148eba
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__ */ |