libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ companion_proxy_start_listening_for_devices()

companion_proxy_error_t companion_proxy_start_listening_for_devices ( companion_proxy_client_t  client,
companion_proxy_device_event_cb_t  callback,
void *  userdata 
)

Starts listening for paired devices.

Parameters
clientThe companion_proxy client
callbackCallback function that will be called when a new device is detected
userdataPointer that that will be passed to the callback function
Note
The event parameter that gets passed to the callback function is freed internally after returning from the callback. The consumer needs to make a copy if required.
Returns
COMPANION_PROXY_E_SUCCESS on success, or a COMPANION_PROXY_E_* error code otherwise.