diff options
| author | 2019-11-20 01:39:46 +0100 | |
|---|---|---|
| committer | 2019-11-20 01:39:46 +0100 | |
| commit | 43852c74160394c0be876945b85c0656fa2bff81 (patch) | |
| tree | 00c22f445e13fadf344d7977e00cf2b2dee34856 /include | |
| parent | af91dc6376946daffd5c9ece916d9f33af828890 (diff) | |
| download | libimobiledevice-43852c74160394c0be876945b85c0656fa2bff81.tar.gz libimobiledevice-43852c74160394c0be876945b85c0656fa2bff81.tar.bz2 | |
debugserver: Return size of the returned buffer
Diffstat (limited to 'include')
| -rw-r--r-- | include/libimobiledevice/debugserver.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libimobiledevice/debugserver.h b/include/libimobiledevice/debugserver.h index 19a4f5d..8ac116c 100644 --- a/include/libimobiledevice/debugserver.h +++ b/include/libimobiledevice/debugserver.h | |||
| @@ -142,22 +142,24 @@ debugserver_error_t debugserver_client_receive(debugserver_client_t client, char | |||
| 142 | * @param client The debugserver client | 142 | * @param client The debugserver client |
| 143 | * @param command Command to process and send | 143 | * @param command Command to process and send |
| 144 | * @param response Response received for the command (can be NULL to ignore) | 144 | * @param response Response received for the command (can be NULL to ignore) |
| 145 | * @param response_size Pointer to receive response size. Set to NULL to ignore. | ||
| 145 | * | 146 | * |
| 146 | * @return DEBUGSERVER_E_SUCCESS on success, | 147 | * @return DEBUGSERVER_E_SUCCESS on success, |
| 147 | * DEBUGSERVER_E_INVALID_ARG when client or command is NULL | 148 | * DEBUGSERVER_E_INVALID_ARG when client or command is NULL |
| 148 | */ | 149 | */ |
| 149 | debugserver_error_t debugserver_client_send_command(debugserver_client_t client, debugserver_command_t command, char** response); | 150 | debugserver_error_t debugserver_client_send_command(debugserver_client_t client, debugserver_command_t command, char** response, size_t* response_size); |
| 150 | 151 | ||
| 151 | /** | 152 | /** |
| 152 | * Receives and parses response of debugserver service. | 153 | * Receives and parses response of debugserver service. |
| 153 | * | 154 | * |
| 154 | * @param client The debugserver client | 155 | * @param client The debugserver client |
| 155 | * @param response Response received for last command (can be NULL to ignore) | 156 | * @param response Response received for last command (can be NULL to ignore) |
| 157 | * @param response_size Pointer to receive response size. Set to NULL to ignore. | ||
| 156 | * | 158 | * |
| 157 | * @return DEBUGSERVER_E_SUCCESS on success, | 159 | * @return DEBUGSERVER_E_SUCCESS on success, |
| 158 | * DEBUGSERVER_E_INVALID_ARG when client is NULL | 160 | * DEBUGSERVER_E_INVALID_ARG when client is NULL |
| 159 | */ | 161 | */ |
| 160 | debugserver_error_t debugserver_client_receive_response(debugserver_client_t client, char** response); | 162 | debugserver_error_t debugserver_client_receive_response(debugserver_client_t client, char** response, size_t* response_size); |
| 161 | 163 | ||
| 162 | /** | 164 | /** |
| 163 | * Controls status of ACK mode when sending commands or receiving responses. | 165 | * Controls status of ACK mode when sending commands or receiving responses. |
