Type Alias libosdp_sys::osdp_log_callback_fn_t
source · pub type osdp_log_callback_fn_t = Option<unsafe extern "C" fn(log_level: c_int, file: *const c_char, line: c_ulong, msg: *const c_char)>;Expand description
@brief A callback function to be used with external loggers
@param log_level A syslog style log level. See enum osdp_log_level_e
@param file Relative path to file which produced the log message
@param line Line number in file which produced the log message
@param msg The log message
Aliased Type§
enum osdp_log_callback_fn_t {
None,
Some(unsafe extern "C" fn(_: i32, _: *const i8, _: u32, _: *const i8)),
}