diff options
author | Nikias Bassen | 2012-07-17 18:04:20 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 18:04:20 +0200 |
commit | a66e7cd6ef03ba4ae2af5ebfb62118c76c70b48a (patch) | |
tree | 06efaab0b6f83115cdeca463983f59990df3bf6d | |
parent | 6b1eb40e00b20c28da25731d18251aadc82ef583 (diff) | |
download | libirecovery-a66e7cd6ef03ba4ae2af5ebfb62118c76c70b48a.tar.gz libirecovery-a66e7cd6ef03ba4ae2af5ebfb62118c76c70b48a.tar.bz2 |
added irecv_control_transfer and irecv_bulk_transfer to public interface
-rw-r--r-- | include/libirecovery.h | 3 | ||||
-rw-r--r-- | src/libirecovery.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index f89ca3e..0323135 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h @@ -221,6 +221,9 @@ irecv_error_t irecv_set_configuration(irecv_client_t client, int configuration); irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event_type type, irecv_event_cb_t callback, void *user_data); irecv_error_t irecv_event_unsubscribe(irecv_client_t client, irecv_event_type type); +int irecv_control_transfer(irecv_client_t client, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, unsigned char *data, uint16_t wLength, unsigned int timeout); +int irecv_bulk_transfer(irecv_client_t client, unsigned char endpoint, unsigned char *data, int length, int *transferred, unsigned int timeout); + irecv_error_t irecv_send_file(irecv_client_t client, const char* filename, int dfuNotifyFinished); irecv_error_t irecv_send_command(irecv_client_t client, char* command); irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfuNotifyFinished); diff --git a/src/libirecovery.c b/src/libirecovery.c index 4ca177b..1e249a5 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -396,7 +396,7 @@ void irecv_exit() { void dummy_callback() { } #endif -static int irecv_control_transfer( irecv_client_t client, +int irecv_control_transfer( irecv_client_t client, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, @@ -448,7 +448,7 @@ static int irecv_control_transfer( irecv_client_t client, #endif } -static int irecv_bulk_transfer(irecv_client_t client, +int irecv_bulk_transfer(irecv_client_t client, unsigned char endpoint, unsigned char *data, int length, |