summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-05-13 15:10:40 -0400
committerGravatar Joshua Hill2010-05-13 15:10:40 -0400
commita814b04770dc83774cd705d2fc8993f24e504a01 (patch)
tree3354669aab557d16eea95373538152c311142ca4 /include
parent520c99d33e18009660f30bd38b31a2f1cd432fe6 (diff)
downloadlibirecovery-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.h7
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 @@
#define IRECV_ERROR_UNABLE_TO_CONNECT -3
#define IRECV_ERROR_INVALID_INPUT -4
#define IRECV_ERROR_UNKNOWN -5
+#define IRECV_ERROR_FILE_NOT_FOUND -6
+#define IRECV_ERROR_USB_UPLOAD -7
+#define IRECV_ERROR_USB_STATUS -8
enum {
kAppleId = 0x05AC,
@@ -44,5 +47,5 @@ int irecv_exit(irecv_device* device);
int irecv_init(irecv_device** device);
int irecv_reset(irecv_device* device);
int irecv_close(irecv_device* device);
-int irecv_command(irecv_device* device, const char* command);
-
+int irecv_send_file(irecv_device* device, const char* filename);
+int irecv_send_command(irecv_device* device, const char* command);