diff options
author | Martin Szulecki | 2013-09-26 23:19:21 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-09-26 23:19:21 +0200 |
commit | 188d8cbe0b788eeb07eea45204d59dc97fcc911e (patch) | |
tree | 2e17033a37c720557c16f904eb4a014e6fe969a0 /include/libirecovery.h | |
parent | 85e60c68e1d080d3b822bfde9c1c7f9e59c5e0b4 (diff) | |
download | libirecovery-188d8cbe0b788eeb07eea45204d59dc97fcc911e.tar.gz libirecovery-188d8cbe0b788eeb07eea45204d59dc97fcc911e.tar.bz2 |
Add "usb" prefix to all method names which are related to USB features
Diffstat (limited to 'include/libirecovery.h')
-rw-r--r-- | include/libirecovery.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index 14891a2..8a85e33 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h @@ -205,15 +205,17 @@ irecv_error_t irecv_reset(irecv_client_t client); irecv_error_t irecv_close(irecv_client_t client); irecv_error_t irecv_receive(irecv_client_t client); irecv_error_t irecv_execute_script(irecv_client_t client, const char* script); -irecv_error_t irecv_set_configuration(irecv_client_t client, int configuration); irecv_error_t irecv_trigger_limera1n_exploit(irecv_client_t client); +/* usb helpers */ +irecv_error_t irecv_usb_set_configuration(irecv_client_t client, int configuration); +irecv_error_t irecv_usb_set_interface(irecv_client_t client, int interface, int alt_interface); +int irecv_usb_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_usb_bulk_transfer(irecv_client_t client, unsigned char endpoint, unsigned char *data, int length, int *transferred, unsigned int timeout); + 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, const char* command); irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfuNotifyFinished); @@ -222,7 +224,6 @@ irecv_error_t irecv_saveenv(irecv_client_t client); irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value); irecv_error_t irecv_getenv(irecv_client_t client, const char* variable, char** value); irecv_error_t irecv_setenv(irecv_client_t client, const char* variable, const char* value); -irecv_error_t irecv_set_interface(irecv_client_t client, int interface, int alt_interface); irecv_error_t irecv_reboot(irecv_client_t client); irecv_error_t irecv_get_cpid(irecv_client_t client, unsigned int* cpid); irecv_error_t irecv_get_bdid(irecv_client_t client, unsigned int* bdid); |