Type Alias IWLOG_FN

Source
pub type IWLOG_FN = Option<unsafe extern "C" fn(out: *mut FILE, locale: locale_t, lvl: iwlog_lvl, ecode: iwrc, errno_code: c_int, werror_code: c_int, file: *const c_char, line: c_int, ts: u64, opts: *mut c_void, fmt: *const c_char, argp: *mut __va_list_tag, no_va: bool) -> iwrc>;
Expand description

@brief Logging function pointer.

@param locale Locale used to print error message. @param lvl Log level. @param ecode Error code specified. @param errno_code Optional errno code. Set it to 0 if errno not used. @param file File name. Can be NULL @param line Line number in the file. @param ts Message time-stamp @param fmt printf style message format @return Not zero error code in the case of error.

@see iwlog_set_logfn(IWLOG_FN)

Aliased Type§

enum IWLOG_FN {
    None,
    Some(unsafe extern "C" fn(_: *mut _IO_FILE, _: *mut __locale_struct, _: u32, _: u64, _: i32, _: i32, _: *const i8, _: i32, _: u64, _: *mut c_void, _: *const i8, _: *mut __va_list_tag, _: bool) -> u64),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut _IO_FILE, _: *mut __locale_struct, _: u32, _: u64, _: i32, _: i32, _: *const i8, _: i32, _: u64, _: *mut c_void, _: *const i8, _: *mut __va_list_tag, _: bool) -> u64)

Some value of type T.