/** * Release the event callback function that has been registered with * idevice_event_subscribe(). * * @return IDEVICE_E_SUCCESS on success or an error value when an error occured. */ idevice_error_t idevice_event_unsubscribe() { event_cb = NULL; int res = usbmuxd_unsubscribe(); if (res != 0) { debug_info("Error %d when unsubscribing usbmux event callback!", res); return IDEVICE_E_UNKNOWN_ERROR; } return IDEVICE_E_SUCCESS; }
idevice_error_t idevice_event_unsubscribe() { event_cb = NULL; int res = usbmuxd_unsubscribe(); if (res != 0) { debug_info("ERROR: usbmuxd_unsubscribe() returned %d!", res); return IDEVICE_E_UNKNOWN_ERROR; } return IDEVICE_E_SUCCESS; }
/** * Release the event callback function that has been registered with * iphone_event_subscribe(). * * @return IPHONE_E_SUCCESS on success or an error value when an error occured. */ iphone_error_t iphone_event_unsubscribe() { event_cb = NULL; int res = usbmuxd_unsubscribe(); if (res != 0) { log_debug_msg("%s: Error %d when unsubscribing usbmux event callback!\n", __func__, res); return IPHONE_E_UNKNOWN_ERROR; } return IPHONE_E_SUCCESS; }