libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ idevice_event_subscribe()

idevice_error_t idevice_event_subscribe ( idevice_event_cb_t  callback,
void *  user_data 
)

Register a callback function that will be called when device add/remove events occur.

Parameters
callbackCallback function to call.
user_dataApplication-specific data passed as parameter to the registered callback function.
Returns
IDEVICE_E_SUCCESS on success or an error value when an error occurred.