]>
Commit | Line | Data |
---|---|---|
81a1093d MG |
1 | struct file_entry { |
2 | char *name; | |
7215c018 MG |
3 | uint8_t *start; |
4 | int32_t length; | |
5 | uint8_t unknown; | |
81a1093d MG |
6 | }; |
7 | ||
7215c018 MG |
8 | struct file_entry* get_next_file(uint8_t *fw, int32_t len); |
9 | void extract_files(uint8_t *fw, int32_t len); | |
10 | void replace_add_file(uint8_t *fw, int32_t len, char *fwname, char *lname); | |
11 | void list_files(uint8_t *fw, int32_t len); | |
12 | void write_file(char *fname, uint8_t *buf, int32_t len); | |
3de486ae | 13 | char *extracted_file(char *fname); |