Type Alias alpm_sys::alpm_cb_log

source ·
pub type alpm_cb_log = Option<unsafe extern "C" fn(ctx: *mut c_void, level: alpm_loglevel_t, fmt: *const c_char, args: *mut __va_list_tag)>;
Expand description

The callback type for logging.

libalpm will call this function whenever something is to be logged. many libalpm will produce log output. Additionally any calls to \link alpm_logaction \endlink will also call this callback. @param ctx user-provided context @param level the currently set loglevel @param fmt the printf like format string @param args printf like arguments

Aliased Type§

enum alpm_cb_log {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: u32, _: *const i8, _: *mut __va_list_tag)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: u32, _: *const i8, _: *mut __va_list_tag))

Some value of type T.