summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/service.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libimobiledevice/service.h')
-rw-r--r--include/libimobiledevice/service.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/libimobiledevice/service.h b/include/libimobiledevice/service.h
index 13c5df1..5c43e29 100644
--- a/include/libimobiledevice/service.h
+++ b/include/libimobiledevice/service.h
@@ -37,6 +37,8 @@ typedef enum {
37 SERVICE_E_MUX_ERROR = -3, 37 SERVICE_E_MUX_ERROR = -3,
38 SERVICE_E_SSL_ERROR = -4, 38 SERVICE_E_SSL_ERROR = -4,
39 SERVICE_E_START_SERVICE_ERROR = -5, 39 SERVICE_E_START_SERVICE_ERROR = -5,
40 SERIVCE_E_NOT_ENOUGH_DATA = -6,
41 SERVICE_E_TIMEOUT = -7,
40 SERVICE_E_UNKNOWN_ERROR = -256 42 SERVICE_E_UNKNOWN_ERROR = -256
41} service_error_t; 43} service_error_t;
42 44
@@ -132,7 +134,9 @@ service_error_t service_receive_with_timeout(service_client_t client, char *data
132 * 134 *
133 * @return SERVICE_E_SUCCESS on success, 135 * @return SERVICE_E_SUCCESS on success,
134 * SERVICE_E_INVALID_ARG when one or more parameters are 136 * SERVICE_E_INVALID_ARG when one or more parameters are
135 * invalid, SERVICE_E_MUX_ERROR when a communication error 137 * invalid, SERIVCE_E_NOT_ENOUGH_DATA when not enough data
138 * received, SERVICE_E_TIMEOUT when the connection times out,
139 * SERVICE_E_MUX_ERROR when a communication error
136 * occurs, or SERVICE_E_UNKNOWN_ERROR when an unspecified 140 * occurs, or SERVICE_E_UNKNOWN_ERROR when an unspecified
137 * error occurs. 141 * error occurs.
138 */ 142 */
@@ -146,7 +150,9 @@ service_error_t service_receive(service_client_t client, char *data, uint32_t si
146 * 150 *
147 * @return SERVICE_E_SUCCESS on success, 151 * @return SERVICE_E_SUCCESS on success,
148 * SERVICE_E_INVALID_ARG if client or client->connection is 152 * SERVICE_E_INVALID_ARG if client or client->connection is
149 * NULL, SERVICE_E_SSL_ERROR when SSL could not be enabled, 153 * NULL, SERIVCE_E_NOT_ENOUGH_DATA when not enough data
154 * received, SERVICE_E_TIMEOUT when the connection times out,
155 * SERVICE_E_SSL_ERROR when SSL could not be enabled,
150 * or SERVICE_E_UNKNOWN_ERROR otherwise. 156 * or SERVICE_E_UNKNOWN_ERROR otherwise.
151 */ 157 */
152service_error_t service_enable_ssl(service_client_t client); 158service_error_t service_enable_ssl(service_client_t client);