Subscribe a callback function that will be called when device add/remove events occur.
- Parameters
-
context | A pointer to a idevice_subscription_context_t that will be set upon creation of the subscription. The returned context must be passed to idevice_events_unsubscribe() to unsubscribe the callback. |
callback | Callback function to call. |
user_data | Application-specific data passed as parameter to the registered callback function. |
- Returns
- IDEVICE_E_SUCCESS on success or an error value when an error occurred.