summaryrefslogtreecommitdiff
path: root/utils/atj2137/atjboottool/afi.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-09-29 18:22:30 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-09-29 18:22:30 +0200
commitea679de8371e4e74fe4e78fb8df8e5df19efffdc (patch)
treec08cf8be057318313a3bcf040395826afe62566b /utils/atj2137/atjboottool/afi.h
parent95c32a505a7bfef2dcac2a975b1f5875f490c405 (diff)
downloadrockbox-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.h8
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 */ 26uint32_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 */
30typedef int (*afi_extract_callback_t)(const char *name, uint8_t *buf, size_t size);
31int afi_unpack(uint8_t *buf, size_t size, afi_extract_callback_t cb);
32/* Check if a file looks like an AFI file */
27bool afi_check(uint8_t *buf, size_t size); 33bool afi_check(uint8_t *buf, size_t size);
28 34
29#endif /* __AFI_H__ */ 35#endif /* __AFI_H__ */