Type Alias libosdp_sys::osdp_write_fn_t

source ·
pub type osdp_write_fn_t = Option<unsafe extern "C" fn(data: *mut c_void, buf: *mut u8, len: c_int) -> c_int>;
Expand description

@brief pointer to function that sends byte array into some channel. This function should be non-blocking.

@param data for use by underlying layers. osdp_channel::data is passed @param buf byte array to be sent @param len number of bytes in buf

@retval +ve: number of bytes sent. must be <= len @retval -ve on errors

Aliased Type§

enum osdp_write_fn_t {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: i32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: i32) -> i32)

Some value of type T.