diff options
Diffstat (limited to 'include/libirecovery.h')
-rw-r--r-- | include/libirecovery.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index 04892c4..ec9255b 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h | |||
@@ -122,6 +122,13 @@ typedef struct { | |||
122 | typedef struct irecv_client_private irecv_client_private; | 122 | typedef struct irecv_client_private irecv_client_private; |
123 | typedef irecv_client_private* irecv_client_t; | 123 | typedef irecv_client_private* irecv_client_t; |
124 | 124 | ||
125 | enum { | ||
126 | IRECV_SEND_OPT_NONE = 0, | ||
127 | IRECV_SEND_OPT_DFU_NOTIFY_FINISH = (1 << 0), | ||
128 | IRECV_SEND_OPT_DFU_FORCE_ZLP = (1 << 1), | ||
129 | IRECV_SEND_OPT_DFU_SMALL_PKT = (1 << 2) | ||
130 | }; | ||
131 | |||
125 | /* library */ | 132 | /* library */ |
126 | IRECV_API void irecv_set_debug_level(int level); | 133 | IRECV_API void irecv_set_debug_level(int level); |
127 | IRECV_API const char* irecv_strerror(irecv_error_t error); | 134 | IRECV_API const char* irecv_strerror(irecv_error_t error); |
@@ -160,10 +167,10 @@ IRECV_API irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event | |||
160 | IRECV_API irecv_error_t irecv_event_unsubscribe(irecv_client_t client, irecv_event_type type); | 167 | IRECV_API irecv_error_t irecv_event_unsubscribe(irecv_client_t client, irecv_event_type type); |
161 | 168 | ||
162 | /* I/O */ | 169 | /* I/O */ |
163 | IRECV_API irecv_error_t irecv_send_file(irecv_client_t client, const char* filename, int dfu_notify_finished); | 170 | IRECV_API irecv_error_t irecv_send_file(irecv_client_t client, const char* filename, unsigned int options); |
164 | IRECV_API irecv_error_t irecv_send_command(irecv_client_t client, const char* command); | 171 | IRECV_API irecv_error_t irecv_send_command(irecv_client_t client, const char* command); |
165 | IRECV_API irecv_error_t irecv_send_command_breq(irecv_client_t client, const char* command, uint8_t b_request); | 172 | IRECV_API irecv_error_t irecv_send_command_breq(irecv_client_t client, const char* command, uint8_t b_request); |
166 | IRECV_API irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished); | 173 | IRECV_API irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, unsigned int options); |
167 | IRECV_API irecv_error_t irecv_recv_buffer(irecv_client_t client, char* buffer, unsigned long length); | 174 | IRECV_API irecv_error_t irecv_recv_buffer(irecv_client_t client, char* buffer, unsigned long length); |
168 | 175 | ||
169 | /* commands */ | 176 | /* commands */ |