diff options
author | Nikias Bassen | 2023-09-14 02:34:06 +0200 |
---|---|---|
committer | Nikias Bassen | 2023-09-14 02:34:06 +0200 |
commit | dbe7313260ddef6b2eb60b3772d1595bfd91f24c (patch) | |
tree | 2405ac44d7e4386a7b245d9230f17300d83195a3 /src/common.h | |
parent | 17969ef91403f1a914d43584caf9fa0da89d649e (diff) | |
download | idevicerestore-dbe7313260ddef6b2eb60b3772d1595bfd91f24c.tar.gz idevicerestore-dbe7313260ddef6b2eb60b3772d1595bfd91f24c.tar.bz2 |
Refactor ipsw code to transparently stream images directly from ZIP or extracted ipsw
This allows flashing directly from IPSW archive without having to extract it
first, and ultimately removes the "Extracting filesystem from IPSW" part.
Restoring from extracted IPSW is also supported, just pass the path to the
directory that has all the files from a given IPSW.
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h index 97d5f96..5afe5ab 100644 --- a/src/common.h +++ b/src/common.h @@ -70,6 +70,9 @@ struct dfu_client_t; struct normal_client_t; struct restore_client_t; struct recovery_client_t; +struct ipsw_archive; + +typedef struct ipsw_archive* ipsw_archive_t; struct idevicerestore_mode_t { int index; @@ -101,8 +104,7 @@ struct idevicerestore_client_t { plist_t preflight_info; char* udid; char* srnm; - char* ipsw; - const char* filesystem; + ipsw_archive_t ipsw; struct dfu_client_t* dfu; struct restore_client_t* restore; struct recovery_client_t* recovery; |