pub unsafe extern "C" fn alpm_option_set_fetchcb(
handle: *mut alpm_handle_t,
cb: alpm_cb_fetch,
ctx: *mut c_void,
) -> c_int
Expand description
Sets the downloading callback. @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)