libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ np_client_new()

np_error_t np_client_new ( idevice_t  device,
lockdownd_service_descriptor_t  service,
np_client_t client 
)

Connects to the notification_proxy 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 np_client_t upon successful return.
Returns
NP_E_SUCCESS on success, NP_E_INVALID_ARG when device is NULL, or NP_E_CONN_FAILED when the connection to the device could not be established.