summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-05-23 17:20:50 -0400
committerGravatar Joshua Hill2010-05-23 17:20:50 -0400
commit53142922b14fe36f950eb28d3b42683ddedb7669 (patch)
tree936df7c71a646d310e97c5378b217c2b86a9757a /include
parent442363a01ef44e84eda3e22c71dd2de424f5121e (diff)
downloadlibirecovery-53142922b14fe36f950eb28d3b42683ddedb7669.tar.gz
libirecovery-53142922b14fe36f950eb28d3b42683ddedb7669.tar.bz2
Quite a few bug fixes, updated to be used with the latest version of idevicerestore. Still quite a few issues to be ironed out though.
Diffstat (limited to 'include')
-rw-r--r--include/libirecovery.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h
index 9d30497..9848655 100644
--- a/include/libirecovery.h
+++ b/include/libirecovery.h
@@ -18,29 +18,29 @@
18 18
19#include <libusb-1.0/libusb.h> 19#include <libusb-1.0/libusb.h>
20 20
21typedef enum {
22 IRECV_E_SUCCESS = 0,
23 IRECV_E_NO_DEVICE = -1,
24 IRECV_E_OUT_OF_MEMORY = -2,
25 IRECV_E_UNABLE_TO_CONNECT = -3,
26 IRECV_E_INVALID_INPUT = -4,
27 IRECV_E_UNKNOWN = -5,
28 IRECV_E_FILE_NOT_FOUND = -6,
29 IRECV_E_USB_UPLOAD = -7,
30 IRECV_E_USB_STATUS = -8,
31 IRECV_E_USB_INTERFACE = -9,
32 IRECV_E_USB_CONFIGURATION = -10
33} irecv_error_t;
34
35#define APPLE_VENDOR_ID 0x05AC 21#define APPLE_VENDOR_ID 0x05AC
36 22
37typedef enum { 23enum {
38 kRecoveryMode1 = 0x1280, 24 kRecoveryMode1 = 0x1280,
39 kRecoveryMode2 = 0x1281, 25 kRecoveryMode2 = 0x1281,
40 kRecoveryMode3 = 0x1282, 26 kRecoveryMode3 = 0x1282,
41 kRecoveryMode4 = 0x1283, 27 kRecoveryMode4 = 0x1283,
42 kDfuMode = 0x1227 28 kDfuMode = 0x1227
43} irecv_mode_t; 29};
30
31typedef enum {
32 IRECV_E_SUCCESS = 0,
33 IRECV_E_NO_DEVICE = -1,
34 IRECV_E_OUT_OF_MEMORY = -2,
35 IRECV_E_UNABLE_TO_CONNECT = -3,
36 IRECV_E_INVALID_INPUT = -4,
37 IRECV_E_FILE_NOT_FOUND = -5,
38 IRECV_E_USB_UPLOAD = -6,
39 IRECV_E_USB_STATUS = -7,
40 IRECV_E_USB_INTERFACE = -8,
41 IRECV_E_USB_CONFIGURATION = -9,
42 IRECV_E_UNKNOWN_ERROR = -255
43} irecv_error_t;
44 44
45struct irecv_client; 45struct irecv_client;
46typedef struct irecv_client* irecv_client_t; 46typedef struct irecv_client* irecv_client_t;
@@ -53,8 +53,7 @@ struct irecv_client {
53 int config; 53 int config;
54 int interface; 54 int interface;
55 int alt_interface; 55 int alt_interface;
56 char *uuid; 56 unsigned short mode;
57 irecv_mode_t mode;
58 libusb_context* context; 57 libusb_context* context;
59 libusb_device_handle* handle; 58 libusb_device_handle* handle;
60 irecv_send_callback send_callback; 59 irecv_send_callback send_callback;