[][src]Type Definition alpm_sys_fork::alpm_cb_fetch

type alpm_cb_fetch = Option<unsafe extern "C" fn(url: *const c_char, localpath: *const c_char, force: c_int) -> c_int>;

A callback for downloading files @param url the URL of the file to be downloaded @param localpath the directory to which the file should be downloaded @param force whether to force an update, even if the file is the same @return 0 on success, 1 if the file exists and is identical, -1 on error.