Type Definition alpm_sys_ll::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