pub type osdp_read_fn_t = Option<unsafe extern "C" fn(data: *mut c_void, buf: *mut u8, maxlen: c_int) -> c_int>;Expand description
@brief pointer to function that copies received bytes into buffer. This function should be non-blocking.
@param data for use by underlying layers. osdp_channel::data is passed
@param buf byte array copy incoming data
@param maxlen sizeof buf. Can copy utmost maxlen bytes into buf
@retval +ve: number of bytes copied on to buf. Must be <= len
@retval -ve on errors
Aliased Type§
pub enum osdp_read_fn_t {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut u8, i32) -> i32),
}