pub type IOHIDReportCallbackFunction = Option<unsafe extern "C-unwind" fn(*mut c_void, IOReturn, *mut c_void, *mut c_void, u32)>;Available on crate feature
hid only.Expand description
Type and arguments of callout C function that is used when a completion routine is called, see IOHIDLib.h:setReport().
Parameter target: void * pointer to your data, often a pointer to an object.
Parameter result: Completion result of desired operation.
Parameter refcon: void * pointer to more data.
Parameter sender: Interface instance sending the completion routine.
Parameter bufferSize: Size of the buffer received upon completion.
See also Apple’s documentation
Aliased Type§
pub enum IOHIDReportCallbackFunction {
None,
Some(unsafe extern "C-unwind" fn(*mut c_void, i32, *mut c_void, *mut c_void, u32)),
}