X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/aee449595a07ee4bd86156d8a9e255593c7085d5..7215c0181e234f31f8970d9d8953ea7850d9f3de:/src/filesystem.h diff --git a/src/filesystem.h b/src/filesystem.h index bf9a4c8..25cf1e4 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -1,13 +1,13 @@ struct file_entry { char *name; - unsigned char *start; - int length; - unsigned char unknown; + uint8_t *start; + int32_t length; + uint8_t unknown; }; -struct file_entry* get_next_file(unsigned char *fw, int len); -void extract_files(unsigned char *fw, int len); -void replace_add_file(unsigned char *fw, int len, char *fwname, char *lname); -void list_files(unsigned char *fw, int len); -void write_file(char *fname, unsigned char *buf, int len); +struct file_entry* get_next_file(uint8_t *fw, int32_t len); +void extract_files(uint8_t *fw, int32_t len); +void replace_add_file(uint8_t *fw, int32_t len, char *fwname, char *lname); +void list_files(uint8_t *fw, int32_t len); +void write_file(char *fname, uint8_t *buf, int32_t len); char *extracted_file(char *fname);