summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/lockdown.h
diff options
context:
space:
mode:
authorGravatar Koby Boyango2014-10-02 15:49:48 +0300
committerGravatar Martin Szulecki2014-10-02 16:55:30 +0200
commit6011eef62e64bb7cf8239b8466c9aed01432d2f8 (patch)
tree38007ec55f3808c754f7255300eb4c7170bac7a6 /include/libimobiledevice/lockdown.h
parent4a9f1c098cdc0e96ceac5bc3bbf6566cad32d7bd (diff)
downloadlibimobiledevice-6011eef62e64bb7cf8239b8466c9aed01432d2f8.tar.gz
libimobiledevice-6011eef62e64bb7cf8239b8466c9aed01432d2f8.tar.bz2
lockdown: Added lockdownd_start_service_with_escrow_bag
Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
Diffstat (limited to 'include/libimobiledevice/lockdown.h')
-rw-r--r--include/libimobiledevice/lockdown.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h
index ab6ae88..3a088c1 100644
--- a/include/libimobiledevice/lockdown.h
+++ b/include/libimobiledevice/lockdown.h
@@ -184,7 +184,7 @@ lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *
184 * @param client The lockdownd client 184 * @param client The lockdownd client
185 * @param identifier The identifier of the service to start 185 * @param identifier The identifier of the service to start
186 * @param descriptor The service descriptor on success or NULL on failure 186 * @param descriptor The service descriptor on success or NULL on failure
187 187 *
188 * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG if a parameter 188 * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG if a parameter
189 * is NULL, LOCKDOWN_E_INVALID_SERVICE if the requested service is not known 189 * is NULL, LOCKDOWN_E_INVALID_SERVICE if the requested service is not known
190 * by the device, LOCKDOWN_E_START_SERVICE_FAILED if the service could not be 190 * by the device, LOCKDOWN_E_START_SERVICE_FAILED if the service could not be
@@ -193,6 +193,22 @@ lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *
193lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); 193lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service);
194 194
195/** 195/**
196 * Requests to start a service and retrieve it's port on success.
197 * Sends the escrow bag from the device's pair record.
198 *
199 * @param client The lockdownd client
200 * @param identifier The identifier of the service to start
201 * @param descriptor The service descriptor on success or NULL on failure
202 *
203 * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG if a parameter
204 * is NULL, LOCKDOWN_E_INVALID_SERVICE if the requested service is not known
205 * by the device, LOCKDOWN_E_START_SERVICE_FAILED if the service could not because
206 * started by the device, LOCKDOWN_E_INVALID_CONF if the host id or escrow bag are
207 * missing from the device record.
208 */
209lockdownd_error_t lockdownd_start_service_with_escrow_bag(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service);
210
211/**
196 * Opens a session with lockdownd and switches to SSL mode if device wants it. 212 * Opens a session with lockdownd and switches to SSL mode if device wants it.
197 * 213 *
198 * @param client The lockdownd client 214 * @param client The lockdownd client