mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-16 08:32:36 -05:00
atjboottool: put afi and fw code in its own files
Change-Id: I16347ebee0f82d5fdf32f5aa8f955c07fe148eba
This commit is contained in:
parent
95c32a505a
commit
ea679de837
7 changed files with 500 additions and 393 deletions
|
|
@ -23,7 +23,13 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
/* Check if a file looks like a FWU file */
|
||||
uint32_t afi_checksum(void *ptr, size_t size);
|
||||
/* Unpack an AFI file: the callback function will be called once for each file in the archive with
|
||||
* its name and content. If the callback returns a nonzero value, the function will stop and return
|
||||
* that value. Returns 0 on success */
|
||||
typedef int (*afi_extract_callback_t)(const char *name, uint8_t *buf, size_t size);
|
||||
int afi_unpack(uint8_t *buf, size_t size, afi_extract_callback_t cb);
|
||||
/* Check if a file looks like an AFI file */
|
||||
bool afi_check(uint8_t *buf, size_t size);
|
||||
|
||||
#endif /* __AFI_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue