diff options
author | Nikias Bassen | 2019-11-20 01:39:46 +0100 |
---|---|---|
committer | Nikias Bassen | 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 * @param client The debugserver client * @param command Command to process and send * @param response Response received for the command (can be NULL to ignore) + * @param response_size Pointer to receive response size. Set to NULL to ignore. * * @return DEBUGSERVER_E_SUCCESS on success, * DEBUGSERVER_E_INVALID_ARG when client or command is NULL */ -debugserver_error_t debugserver_client_send_command(debugserver_client_t client, debugserver_command_t command, char** response); +debugserver_error_t debugserver_client_send_command(debugserver_client_t client, debugserver_command_t command, char** response, size_t* response_size); /** * Receives and parses response of debugserver service. * * @param client The debugserver client * @param response Response received for last command (can be NULL to ignore) + * @param response_size Pointer to receive response size. Set to NULL to ignore. * * @return DEBUGSERVER_E_SUCCESS on success, * DEBUGSERVER_E_INVALID_ARG when client is NULL */ -debugserver_error_t debugserver_client_receive_response(debugserver_client_t client, char** response); +debugserver_error_t debugserver_client_receive_response(debugserver_client_t client, char** response, size_t* response_size); /** * Controls status of ACK mode when sending commands or receiving responses. |