libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ lockdownd_client_new()

lockdownd_error_t lockdownd_client_new ( idevice_t  device,
lockdownd_client_t client,
const char *  label 
)

Creates a new lockdownd client for the device.

Note
This function does not pair with the device or start a session. This has to be done manually by the caller after the client is created. The device disconnects automatically if the lockdown connection idles for more than 10 seconds. Make sure to call lockdownd_client_free() as soon as the connection is no longer needed.
Parameters
deviceThe device to create a lockdownd client for
clientThe pointer to the location of the new lockdownd_client
labelThe label to use for communication. Usually the program name.
Returns
LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL