Function alpm_sys::alpm_option_set_progresscb
source · pub unsafe extern "C" fn alpm_option_set_progresscb(
handle: *mut alpm_handle_t,
cb: alpm_cb_progress,
ctx: *mut c_void
) -> c_int
Expand description
Sets the callback used for operation progress. @param handle the context handle @param cb the cb to use @param ctx user-provided context to pass to cb @return 0 on success, -1 on error (pm_errno is set accordingly)