libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ afc_client_new()

afc_error_t afc_client_new ( idevice_t  device,
lockdownd_service_descriptor_t  service,
afc_client_t client 
)

Makes a connection to the AFC service on the device.

Parameters
deviceThe device to connect to.
serviceThe service descriptor returned by lockdownd_start_service.
clientPointer that will be set to a newly allocated afc_client_t upon successful return.
Returns
AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if device or service is invalid, AFC_E_MUX_ERROR if the connection cannot be established, or AFC_E_NO_MEM if there is a memory allocation problem.