libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ mobilesync_client_new()

mobilesync_error_t mobilesync_client_new ( idevice_t  device,
lockdownd_service_descriptor_t  service,
mobilesync_client_t client 
)

Connects to the mobilesync service on the specified device.

Parameters
deviceThe device to connect to.
serviceThe service descriptor returned by lockdownd_start_service.
clientPointer that will be set to a newly allocated mobilesync_client_t upon successful return.
Return values
MOBILESYNC_E_SUCCESSon success
MOBILESYNC_E_INVALID_ARGif one or more parameters are invalid
DEVICE_LINK_SERVICE_E_BAD_VERSIONif the mobilesync version on the device is newer.