summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-26 21:50:54 +0100
committerGravatar Martin Szulecki2015-01-27 22:01:23 +0100
commit42cea6264ef3763509f9dafc01800598c8688c1f (patch)
treef369d3a9c931d38e4e1bc8c0ed328f15615d6a42
parentfddc0a9fa6a849b9afdda20060f3c9926d2b3935 (diff)
downloadlibimobiledevice-42cea6264ef3763509f9dafc01800598c8688c1f.tar.gz
libimobiledevice-42cea6264ef3763509f9dafc01800598c8688c1f.tar.bz2
debugserver: Make debugserver_client_set_ack_mode() public
-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;