diff options
author | Joshua Hill | 2010-06-16 03:38:47 -0400 |
---|---|---|
committer | Joshua Hill | 2010-06-16 03:38:47 -0400 |
commit | c2249545efe5451f25e08fbc57e19b9c91a855c5 (patch) | |
tree | 6a88e84143b613a184039302a6fc5a0f9e1cdf3c /include/libirecovery.h | |
parent | 671640f5e2c9908a3807d537e9e761e398347b57 (diff) | |
download | libirecovery-c2249545efe5451f25e08fbc57e19b9c91a855c5.tar.gz libirecovery-c2249545efe5451f25e08fbc57e19b9c91a855c5.tar.bz2 |
Changed debug variable to be a static global variable to allow set once always enabled style debug flag
Added -e flag to load and execute a premade script file along with a sample script
Diffstat (limited to 'include/libirecovery.h')
-rw-r--r-- | include/libirecovery.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index 50ec5be..d30dd73 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h @@ -71,7 +71,6 @@ struct irecv_client { int interface; int alt_interface; unsigned short mode; - libusb_context* context; libusb_device_handle* handle; irecv_event_cb_t progress_callback; irecv_event_cb_t received_callback; @@ -89,12 +88,12 @@ 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_send_exploit(irecv_client_t client); -irecv_error_t irecv_set_debug(irecv_client_t client, int level); +void irecv_set_debug_level(int level); +irecv_error_t irecv_execute_script(irecv_client_t client, const char* filename); irecv_error_t irecv_getenv(irecv_client_t client, const char* variable, char** value); 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); irecv_error_t irecv_get_ecid(irecv_client_t client, unsigned long long* ecid); -irecv_error_t irecv_send(irecv_client_t client, unsigned char* command); irecv_error_t irecv_send_file(irecv_client_t client, const char* filename); irecv_error_t irecv_send_command(irecv_client_t client, unsigned char* command); irecv_error_t irecv_set_configuration(irecv_client_t client, int configuration); |