summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-29 05:56:00 +0200
committerGravatar Nikias Bassen2012-07-29 05:56:00 +0200
commit0f7af902dc07f3487f0d540923f0956fbcd30ebd (patch)
tree6b1719d89947c4343723420f681de66cfc567998 /src/idevicerestore.h
parentc6110de59aa435d26ae93078c88c45215e1e8056 (diff)
downloadidevicerestore-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.h12
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);