From aa98e764bff59b45173a86d2587b59f5692982eb Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 2 Oct 2022 11:32:19 +0200 Subject: Reduce memory usage for SourceBootObjectV4 images --- src/ipsw.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ipsw.h') diff --git a/src/ipsw.h b/src/ipsw.h index 3b5da80..84ea7a9 100644 --- a/src/ipsw.h +++ b/src/ipsw.h @@ -35,6 +35,7 @@ extern "C" { int ipsw_print_info(const char* ipsw); typedef int (*ipsw_list_cb)(void *ctx, const char* ipsw, const char *name, struct stat *stat); +typedef int (*ipsw_send_cb)(void *ctx, void *data, size_t size); int ipsw_is_directory(const char* ipsw); int ipsw_file_exists(const char* ipsw, const char* infile); @@ -42,6 +43,7 @@ int ipsw_get_file_size(const char* ipsw, const char* infile, uint64_t* size); int ipsw_extract_to_file(const char* ipsw, const char* infile, const char* outfile); int ipsw_extract_to_file_with_progress(const char* ipsw, const char* infile, const char* outfile, int print_progress); int ipsw_extract_to_memory(const char* ipsw, const char* infile, unsigned char** pbuffer, unsigned int* psize); +int ipsw_extract_send(const char* ipsw, const char* infile, int blocksize, ipsw_send_cb send_callback, void* ctx); int ipsw_extract_build_manifest(const char* ipsw, plist_t* buildmanifest, int *tss_enabled); int ipsw_extract_restore_plist(const char* ipsw, plist_t* restore_plist); int ipsw_list_contents(const char* ipsw, ipsw_list_cb cb, void *ctx); -- cgit v1.1-32-gdbae