diff options
author | Joshua Hill | 2010-07-08 23:40:26 -0400 |
---|---|---|
committer | Joshua Hill | 2010-07-08 23:40:26 -0400 |
commit | 4bc0f4d97a767d1291ac9f09780198d5680f3e3f (patch) | |
tree | 62b132e669be7319d749635a9b6d8fb842401810 /src/dfu.h | |
parent | 38c965c16625d26915b3d4998a8a7e790c834d89 (diff) | |
parent | 4090b98d9e8cdaada701ac320e20f7c8b0cf88f6 (diff) | |
download | idevicerestore-4bc0f4d97a767d1291ac9f09780198d5680f3e3f.tar.gz idevicerestore-4bc0f4d97a767d1291ac9f09780198d5680f3e3f.tar.bz2 |
Merge branch 'martin'
Diffstat (limited to 'src/dfu.h')
-rw-r--r-- | src/dfu.h | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -19,11 +19,29 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef DFU_H -#define DFU_H +#ifndef IDEVICERESTORE_DFU_H +#define IDEVICERESTORE_DFU_H -#include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + +#include <libirecovery.h> +#include "common.h" + +struct dfu_client_t { + irecv_client_t client; + const char* ipsw; + plist_t tss; +}; -int dfu_get_ecid(uint64_t* ecid); +int dfu_client_new(struct idevicerestore_client_t* client, uint32_t timeout); +void dfu_client_free(struct idevicerestore_client_t* client); +int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_identity); + + +#ifdef __cplusplus +} +#endif #endif |