Type Alias libosdp_sys::osdp_file_open_fn_t
source · pub type osdp_file_open_fn_t = Option<unsafe extern "C" fn(arg: *mut c_void, file_id: c_int, size: *mut c_int) -> c_int>;Expand description
@brief Open a pre-agreed file
@param arg Opaque pointer that was provided in @ref osdp_file_ops when the ops struct was registered. @param file_id File ID of pre-agreed file between this CP and PD @param size Size of the file that was opened (filled by application)
@retval 0 on success @retval -1 on errors
Aliased Type§
enum osdp_file_open_fn_t {
None,
Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *mut i32) -> i32),
}