summaryrefslogtreecommitdiffstats
path: root/src/recovery.h
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-21 03:47:54 -0400
committerGravatar Joshua Hill2010-06-21 03:59:31 -0400
commit930f4b350474435e011b9dca18424dd1c42ea353 (patch)
tree68b5631b4877710b9aa39e4aa68cbc538bf5d324 /src/recovery.h
parent24afafe06f902bfd9f5652beb8797f24033c68bc (diff)
downloadidevicerestore-930f4b350474435e011b9dca18424dd1c42ea353.tar.gz
idevicerestore-930f4b350474435e011b9dca18424dd1c42ea353.tar.bz2
Finally fixed the out of control problem
Diffstat (limited to 'src/recovery.h')
-rw-r--r--src/recovery.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/recovery.h b/src/recovery.h
index 6cd467c..5d1129f 100644
--- a/src/recovery.h
+++ b/src/recovery.h
@@ -28,8 +28,11 @@ extern "C" {
#include <stdint.h>
#include <plist/plist.h>
-#include <libirecovery.h>
+#include "common.h"
+
+struct irecv_client;
+typedef struct irecv_client* irecv_client_t;
struct recovery_client_t {
irecv_client_t client;
const char* ipsw;
@@ -37,18 +40,19 @@ struct recovery_client_t {
};
int recovery_check_mode();
+int recovery_open_with_timeout(struct idevicerestore_client_t* client);
int recovery_client_new(struct idevicerestore_client_t* client);
void recovery_client_free(struct idevicerestore_client_t* client);
-int recovery_send_signed_component(struct idevicerestore_client_t* client, const char* ipsw, plist_t tss, char* component) {
-irecv_error_t recovery_open_with_timeout(irecv_client_t* client);
-int recovery_send_ibec(const char* ipsw, plist_t tss);
-int recovery_send_applelogo(const char* ipsw, plist_t tss);
-int recovery_send_devicetree(const char* ipsw, plist_t tss);
-int recovery_send_ramdisk(const char* ipsw, plist_t tss);
-int recovery_send_kernelcache(const char* ipsw, plist_t tss);
-int recovery_get_ecid(uint64_t* ecid);
-int recovery_get_cpid(uint32_t* cpid);
-int recovery_get_bdid(uint32_t* bdid);
+int recovery_send_signed_component(struct idevicerestore_client_t* client, const char* component);
+int recovery_send_ibec(struct idevicerestore_client_t* client);
+int recovery_send_applelogo(struct idevicerestore_client_t* client);
+int recovery_send_devicetree(struct idevicerestore_client_t* client);
+int recovery_send_ramdisk(struct idevicerestore_client_t* client);
+int recovery_send_kernelcache(struct idevicerestore_client_t* client);
+int recovery_get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid);
+int recovery_get_cpid(struct idevicerestore_client_t* client, uint32_t* cpid);
+int recovery_get_bdid(struct idevicerestore_client_t* client, uint32_t* bdid);
+
#ifdef __cplusplus
}