summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libimobiledevice/debugserver.h14
-rw-r--r--src/debugserver.c2
2 files changed, 15 insertions, 1 deletions
diff --git a/include/libimobiledevice/debugserver.h b/include/libimobiledevice/debugserver.h
index 3626182..19a4f5d 100644
--- a/include/libimobiledevice/debugserver.h
+++ b/include/libimobiledevice/debugserver.h
@@ -160,6 +160,20 @@ debugserver_error_t debugserver_client_send_command(debugserver_client_t client,
debugserver_error_t debugserver_client_receive_response(debugserver_client_t client, char** response);
/**
+ * Controls status of ACK mode when sending commands or receiving responses.
+ *
+ * @see debugserver_client_send_command, debugserver_client_receive_response
+ *
+ * @param client The debugserver client
+ * @param enabled A boolean flag indicating whether the internal ACK mode
+ * handling should be enabled or disabled.
+ *
+ * @return DEBUGSERVER_E_SUCCESS on success, or an DEBUGSERVER_E_* error
+ * code otherwise.
+ */
+debugserver_error_t debugserver_client_set_ack_mode(debugserver_client_t client, int enabled);
+
+/**
* Sets the argv which launches an app.
*
* @param client The debugserver client
diff --git a/src/debugserver.c b/src/debugserver.c
index 220209b..0aec260 100644
--- a/src/debugserver.c
+++ b/src/debugserver.c
@@ -331,7 +331,7 @@ static debugserver_error_t debugserver_client_send_noack(debugserver_client_t cl
return debugserver_client_send(client, "-", sizeof(char), NULL);
}
-static debugserver_error_t debugserver_client_set_ack_mode(debugserver_client_t client, int enabled)
+LIBIMOBILEDEVICE_API debugserver_error_t debugserver_client_set_ack_mode(debugserver_client_t client, int enabled)
{
if (!client)
return DEBUGSERVER_E_INVALID_ARG;