From 0f7af902dc07f3487f0d540923f0956fbcd30ebd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 29 Jul 2012 05:56:00 +0200 Subject: move main() code after option parsing to separate function --- src/idevicerestore.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/idevicerestore.h') 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); -- cgit v1.1-32-gdbae