From a814b04770dc83774cd705d2fc8993f24e504a01 Mon Sep 17 00:00:00 2001 From: Joshua Hill Date: Thu, 13 May 2010 15:10:40 -0400 Subject: 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() --- include/libirecovery.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.1-32-gdbae