From 930f4b350474435e011b9dca18424dd1c42ea353 Mon Sep 17 00:00:00 2001 From: Joshua Hill Date: Mon, 21 Jun 2010 03:47:54 -0400 Subject: Finally fixed the out of control problem --- src/recovery.h | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'src/recovery.h') 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 #include -#include +#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 } -- cgit v1.1-32-gdbae