summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-02 21:34:05 +0100
committerGravatar Nikias Bassen2012-02-02 21:34:05 +0100
commitbc6550dbbcddb3bc04b1d624881fa31b6b2ab881 (patch)
tree442df5b1d2c78338cb9cdee755dad2275962f4d7 /src
parent7d30cbb6477f1940f3d398c17009360ec07ff291 (diff)
downloadidevicerestore-bc6550dbbcddb3bc04b1d624881fa31b6b2ab881.tar.gz
idevicerestore-bc6550dbbcddb3bc04b1d624881fa31b6b2ab881.tar.bz2
recovery: add recovery_send_reset function
Diffstat (limited to 'src')
-rw-r--r--src/recovery.c7
-rw-r--r--src/recovery.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/recovery.c b/src/recovery.c
index 9f1b2d9..4d283e1 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -462,3 +462,10 @@ int recovery_get_bdid(struct idevicerestore_client_t* client, uint32_t* bdid) {
return 0;
}
+
+int recovery_send_reset(struct idevicerestore_client_t* client)
+{
+ irecv_error_t recovery_error = irecv_send_command(client->recovery->client, "reset");
+ return 0;
+}
+
diff --git a/src/recovery.h b/src/recovery.h
index 9018351..edb036a 100644
--- a/src/recovery.h
+++ b/src/recovery.h
@@ -50,6 +50,7 @@ int recovery_send_applelogo(struct idevicerestore_client_t* client, plist_t buil
int recovery_send_devicetree(struct idevicerestore_client_t* client, plist_t build_identity);
int recovery_send_ramdisk(struct idevicerestore_client_t* client, plist_t build_identity);
int recovery_send_kernelcache(struct idevicerestore_client_t* client, plist_t build_identity);
+int recovery_send_reset(struct idevicerestore_client_t* client);
int recovery_get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid);
int recovery_get_nonce(struct idevicerestore_client_t* client, unsigned char** nonce, int* nonce_size);
int recovery_get_cpid(struct idevicerestore_client_t* client, uint32_t* cpid);