summaryrefslogtreecommitdiffstats
path: root/src/ipsw.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-17 19:00:33 +0200
committerGravatar Nikias Bassen2012-07-17 19:00:33 +0200
commit67bb07bb55577970761b51effa9e17b05b86a2a2 (patch)
treed8d298d1830ad438db4f81d8c22114616d63d88c /src/ipsw.h
parentb32de647e7942147a64b55df1b4e9fc331119ef4 (diff)
downloadidevicerestore-67bb07bb55577970761b51effa9e17b05b86a2a2.tar.gz
idevicerestore-67bb07bb55577970761b51effa9e17b05b86a2a2.tar.bz2
ipsw: add function ipsw_get_file_size() to get uncompressed file size
Diffstat (limited to 'src/ipsw.h')
-rw-r--r--src/ipsw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipsw.h b/src/ipsw.h
index c61e73d..50309bc 100644
--- a/src/ipsw.h
+++ b/src/ipsw.h
@@ -37,6 +37,8 @@ typedef struct {
unsigned char* data;
} ipsw_file;
+int ipsw_get_file_size(const char* ipsw, const char* infile, off_t* size);
+int ipsw_extract_to_file(const char* ipsw, const char* infile, const char* outfile);
int ipsw_extract_to_memory(const char* ipsw, const char* infile, char** pbuffer, uint32_t* psize);
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);