libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ lockdownd_start_service_with_escrow_bag()

lockdownd_error_t lockdownd_start_service_with_escrow_bag ( 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.

Parameters
clientThe lockdownd client
identifierThe identifier of the service to start
serviceThe service descriptor on success or NULL on failure
Returns
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.