pub type IOHIDReportWithTimeStampCallback = Option<unsafe extern "C-unwind" fn(*mut c_void, IOReturn, *mut c_void, IOHIDReportType, u32, NonNull<u8>, CFIndex, u64)>;Available on crate feature
hid only.Expand description
Type and arguments of callout C function that is used when a HID report completion routine is called.
Parameter context: void * pointer to your data, often a pointer to an object.
Parameter result: Completion result of desired operation.
Parameter sender: Interface instance sending the completion routine.
Parameter type: The type of the report that was completed.
Parameter reportID: The ID of the report that was completed.
Parameter report: Pointer to the buffer containing the contents of the report.
Parameter reportLength: Size of the buffer received upon completion.
Parameter timeStamp: The time at which the report arrived.
See also Apple’s documentation
Aliased Type§
pub enum IOHIDReportWithTimeStampCallback {
None,
Some(unsafe extern "C-unwind" fn(*mut c_void, i32, *mut c_void, IOHIDReportType, u32, NonNull<u8>, isize, u64)),
}