Function alpm_sys::alpm_db_get_pkg
source · pub unsafe extern "C" fn alpm_db_get_pkg(
db: *mut alpm_db_t,
name: *const c_char
) -> *mut alpm_pkg_t
Expand description
Get a package entry from a package database. Looking up a package is O(1) and will be significantly faster than iterating over the pkgcahe. @param db pointer to the package database to get the package from @param name of the package @return the package entry on success, NULL on error