diff options
author | Koby Boyango | 2014-10-02 15:49:48 +0300 |
---|---|---|
committer | Martin Szulecki | 2014-10-02 16:55:30 +0200 |
commit | 6011eef62e64bb7cf8239b8466c9aed01432d2f8 (patch) | |
tree | 38007ec55f3808c754f7255300eb4c7170bac7a6 /include/libimobiledevice | |
parent | 4a9f1c098cdc0e96ceac5bc3bbf6566cad32d7bd (diff) | |
download | libimobiledevice-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')
-rw-r--r-- | include/libimobiledevice/lockdown.h | 18 |
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 * * @param client The lockdownd client * @param identifier The identifier of the service to start * @param descriptor The service descriptor on success or NULL on failure - + * * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG if a parameter * is NULL, LOCKDOWN_E_INVALID_SERVICE if the requested service is not known * 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 * lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); /** + * Requests to start a service and retrieve it's port on success. + * Sends the escrow bag from the device's pair record. + * + * @param client The lockdownd client + * @param identifier The identifier of the service to start + * @param descriptor The service descriptor on success or NULL on failure + * + * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG if a parameter + * is NULL, LOCKDOWN_E_INVALID_SERVICE if the requested service is not known + * by the device, LOCKDOWN_E_START_SERVICE_FAILED if the service could not because + * started by the device, LOCKDOWN_E_INVALID_CONF if the host id or escrow bag are + * missing from the device record. + */ +lockdownd_error_t lockdownd_start_service_with_escrow_bag(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); + +/** * Opens a session with lockdownd and switches to SSL mode if device wants it. * * @param client The lockdownd client |