pub unsafe extern "C" fn alpm_option_set_dlcb(
    handle: *mut alpm_handle_t,
    cb: alpm_cb_download,
    ctx: *mut c_void
) -> c_int
Expand description

Sets the callback used to report download 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)