alpm_sys

Function alpm_fetch_pkgurl

Source
pub unsafe extern "C" fn alpm_fetch_pkgurl(
    handle: *mut alpm_handle_t,
    urls: *const alpm_list_t,
    fetched: *mut *mut alpm_list_t,
) -> c_int
Expand description

Fetch a list of remote packages. @param handle the context handle @param urls list of package URLs to download @param fetched list of filepaths to the fetched packages, each item corresponds to one in urls list. This is an output parameter, the caller should provide a pointer to an empty list (*fetched === NULL) and the callee fills the list with data. @return 0 on success or -1 on failure