diff options
| author | 2010-05-13 15:10:40 -0400 | |
|---|---|---|
| committer | 2010-05-13 15:10:40 -0400 | |
| commit | a814b04770dc83774cd705d2fc8993f24e504a01 (patch) | |
| tree | 3354669aab557d16eea95373538152c311142ca4 /include | |
| parent | 520c99d33e18009660f30bd38b31a2f1cd432fe6 (diff) | |
| download | libirecovery-a814b04770dc83774cd705d2fc8993f24e504a01.tar.gz libirecovery-a814b04770dc83774cd705d2fc8993f24e504a01.tar.bz2 | |
Implemented irecv_get_status() to return current iphone usb "state".
Implemented irecv_send_buffer() to upload a buffer to the device load address.
Implemented irecv_send_file() to read a file into memory and pass the buffer into irecv_send_buffer()
Diffstat (limited to 'include')
| -rw-r--r-- | include/libirecovery.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index b489011..801ad88 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h | |||
| @@ -24,6 +24,9 @@ | |||
| 24 | #define IRECV_ERROR_UNABLE_TO_CONNECT -3 | 24 | #define IRECV_ERROR_UNABLE_TO_CONNECT -3 |
| 25 | #define IRECV_ERROR_INVALID_INPUT -4 | 25 | #define IRECV_ERROR_INVALID_INPUT -4 |
| 26 | #define IRECV_ERROR_UNKNOWN -5 | 26 | #define IRECV_ERROR_UNKNOWN -5 |
| 27 | #define IRECV_ERROR_FILE_NOT_FOUND -6 | ||
| 28 | #define IRECV_ERROR_USB_UPLOAD -7 | ||
| 29 | #define IRECV_ERROR_USB_STATUS -8 | ||
| 27 | 30 | ||
| 28 | enum { | 31 | enum { |
| 29 | kAppleId = 0x05AC, | 32 | kAppleId = 0x05AC, |
| @@ -44,5 +47,5 @@ int irecv_exit(irecv_device* device); | |||
| 44 | int irecv_init(irecv_device** device); | 47 | int irecv_init(irecv_device** device); |
| 45 | int irecv_reset(irecv_device* device); | 48 | int irecv_reset(irecv_device* device); |
| 46 | int irecv_close(irecv_device* device); | 49 | int irecv_close(irecv_device* device); |
| 47 | int irecv_command(irecv_device* device, const char* command); | 50 | int irecv_send_file(irecv_device* device, const char* filename); |
| 48 | 51 | int irecv_send_command(irecv_device* device, const char* command); | |
