pub type IOBluetoothUserNotificationCallback = Option<unsafe extern "C-unwind" fn(*mut c_void, *mut IOBluetoothUserNotificationRef, *mut IOBluetoothObjectRef)>;Available on crate feature
IOBluetoothUserLib only.Expand description
Callback function definition for user notifications.
This callback will be invoked when the notification for which it was registered is sent.
Parameter userRefCon: (void *) This user defined parameter was provided during the original call to register
the notification.
Parameter inRef: (IOBluetoothUserNotificationRef) The notification responsible for sending the notification.
Parameter objectRef: (IOBluetoothObjectRef) The object that originated the notification.
See also Apple’s documentation
Aliased Type§
pub enum IOBluetoothUserNotificationCallback {
None,
Some(unsafe extern "C-unwind" fn(*mut c_void, *mut IOBluetoothUserNotificationRef, *mut IOBluetoothObjectRef)),
}Variants§
None
No value.
Some(unsafe extern "C-unwind" fn(*mut c_void, *mut IOBluetoothUserNotificationRef, *mut IOBluetoothObjectRef))
Some value of type T.