diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libimobiledevice/debugserver.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/libimobiledevice/debugserver.h b/include/libimobiledevice/debugserver.h index ce8176c..03f97a4 100644 --- a/include/libimobiledevice/debugserver.h +++ b/include/libimobiledevice/debugserver.h | |||
| @@ -119,7 +119,8 @@ debugserver_error_t debugserver_client_send(debugserver_client_t client, const c | |||
| 119 | * @return DEBUGSERVER_E_SUCCESS on success, | 119 | * @return DEBUGSERVER_E_SUCCESS on success, |
| 120 | * DEBUGSERVER_E_INVALID_ARG when one or more parameters are | 120 | * DEBUGSERVER_E_INVALID_ARG when one or more parameters are |
| 121 | * invalid, DEBUGSERVER_E_MUX_ERROR when a communication error | 121 | * invalid, DEBUGSERVER_E_MUX_ERROR when a communication error |
| 122 | * occurs, or DEBUGSERVER_E_UNKNOWN_ERROR when an unspecified | 122 | * occurs, DEBUGSERVER_E_TIMEOUT when the timeout is reached, |
| 123 | * or DEBUGSERVER_E_UNKNOWN_ERROR when an unspecified | ||
| 123 | * error occurs. | 124 | * error occurs. |
| 124 | */ | 125 | */ |
| 125 | debugserver_error_t debugserver_client_receive_with_timeout(debugserver_client_t client, char *data, uint32_t size, uint32_t *received, unsigned int timeout); | 126 | debugserver_error_t debugserver_client_receive_with_timeout(debugserver_client_t client, char *data, uint32_t size, uint32_t *received, unsigned int timeout); |
| @@ -178,6 +179,20 @@ debugserver_error_t debugserver_client_receive_response(debugserver_client_t cli | |||
| 178 | debugserver_error_t debugserver_client_set_ack_mode(debugserver_client_t client, int enabled); | 179 | debugserver_error_t debugserver_client_set_ack_mode(debugserver_client_t client, int enabled); |
| 179 | 180 | ||
| 180 | /** | 181 | /** |
| 182 | * Sets behavior when awaiting a response from the server. | ||
| 183 | * | ||
| 184 | * @see debugserver_client_send_command, debugserver_client_receive_response, debugserver_client_receive | ||
| 185 | * | ||
| 186 | * @param client The debugserver client | ||
| 187 | * @param cancel_receive A function pointer that will be called approximately every receive_loop_timeout milliseconds; the function should return a boolean flag specifying whether to stop waiting for a response. If NULL, behaves as if it always returns true. | ||
| 188 | * @param receive_loop_timeout Time in milliseconds between calls to cancel_receive. | ||
| 189 | * | ||
| 190 | * @return DEBUGSERVER_E_SUCCESS on success, or an DEBUGSERVER_E_* error | ||
| 191 | * code otherwise. | ||
| 192 | */ | ||
| 193 | debugserver_error_t debugserver_client_set_receive_params(debugserver_client_t client, int (*cancel_receive)(), int receive_loop_timeout); | ||
| 194 | |||
| 195 | /** | ||
| 181 | * Sets the argv which launches an app. | 196 | * Sets the argv which launches an app. |
| 182 | * | 197 | * |
| 183 | * @param client The debugserver client | 198 | * @param client The debugserver client |
