diff options
author | Nikias Bassen | 2012-07-29 05:56:00 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-29 05:56:00 +0200 |
commit | 0f7af902dc07f3487f0d540923f0956fbcd30ebd (patch) | |
tree | 6b1719d89947c4343723420f681de66cfc567998 /src/idevicerestore.h | |
parent | c6110de59aa435d26ae93078c88c45215e1e8056 (diff) | |
download | idevicerestore-0f7af902dc07f3487f0d540923f0956fbcd30ebd.tar.gz idevicerestore-0f7af902dc07f3487f0d540923f0956fbcd30ebd.tar.bz2 |
move main() code after option parsing to separate function
Diffstat (limited to 'src/idevicerestore.h')
-rw-r--r-- | src/idevicerestore.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/idevicerestore.h b/src/idevicerestore.h index 4d25428..446edf4 100644 --- a/src/idevicerestore.h +++ b/src/idevicerestore.h @@ -31,6 +31,18 @@ extern "C" { #include "common.h" +struct idevicerestore_client_t; + +struct idevicerestore_client_t* idevicerestore_client_new(); +void idevicerestore_client_free(struct idevicerestore_client_t* client); + +void idevicerestore_set_ecid(struct idevicerestore_client_t* client, unsigned long long ecid); +void idevicerestore_set_udid(struct idevicerestore_client_t* client, const char* udid); +void idevicerestore_set_flags(struct idevicerestore_client_t* client, int flags); +void idevicerestore_set_ipsw(struct idevicerestore_client_t* client, const char* path); + +int idevicerestore_start(struct idevicerestore_client_t* client); + void usage(int argc, char* argv[]); int check_mode(struct idevicerestore_client_t* client); int check_device(struct idevicerestore_client_t* client); |