summaryrefslogtreecommitdiffstats
path: root/src/ipsw.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2025-07-01 00:45:50 +0200
committerGravatar Nikias Bassen2025-07-01 00:45:50 +0200
commitc752e8780b043c8822be2417cc5596b8f2ad9c0b (patch)
treec57bae87f86c43d68a74447bad319433f66cb89a /src/ipsw.h
parentc17f9d6b17daa6121ec1ef0284d701cd3d1387b2 (diff)
downloadidevicerestore-c752e8780b043c8822be2417cc5596b8f2ad9c0b.tar.gz
idevicerestore-c752e8780b043c8822be2417cc5596b8f2ad9c0b.tar.bz2
Update codebase to use (const) void* and size_t where applicable
Diffstat (limited to 'src/ipsw.h')
-rw-r--r--src/ipsw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipsw.h b/src/ipsw.h
index 8cb2561..b22e614 100644
--- a/src/ipsw.h
+++ b/src/ipsw.h
@@ -44,7 +44,7 @@ void ipsw_close(ipsw_archive_t ipsw);
int ipsw_print_info(const char* ipsw);
typedef int (*ipsw_list_cb)(void *ctx, ipsw_archive_t ipsw, const char *name, struct stat *stat);
-typedef int (*ipsw_send_cb)(void *ctx, void *data, size_t size, size_t done, size_t total_size);
+typedef int (*ipsw_send_cb)(void *ctx, const void *data, size_t size, size_t done, size_t total_size);
struct ipsw_file_handle {
FILE* file;
@@ -69,7 +69,7 @@ int ipsw_file_exists(ipsw_archive_t ipsw, const char* infile);
int ipsw_get_file_size(ipsw_archive_t ipsw, const char* infile, uint64_t* size);
int ipsw_extract_to_file(ipsw_archive_t ipsw, const char* infile, const char* outfile);
int ipsw_extract_to_file_with_progress(ipsw_archive_t ipsw, const char* infile, const char* outfile, int print_progress);
-int ipsw_extract_to_memory(ipsw_archive_t ipsw, const char* infile, unsigned char** pbuffer, unsigned int* psize);
+int ipsw_extract_to_memory(ipsw_archive_t ipsw, const char* infile, void** pbuffer, size_t* psize);
int ipsw_extract_send(ipsw_archive_t ipsw, const char* infile, int blocksize, ipsw_send_cb send_callback, void* ctx);
int ipsw_extract_build_manifest(ipsw_archive_t ipsw, plist_t* buildmanifest, int *tss_enabled);
int ipsw_extract_restore_plist(ipsw_archive_t ipsw, plist_t* restore_plist);