Function alpm_sys::alpm_pkg_get_db
source · pub unsafe extern "C" fn alpm_pkg_get_db(
pkg: *mut alpm_pkg_t
) -> *mut alpm_db_t
Expand description
Returns the database containing pkg. Returns a pointer to the alpm_db_t structure the package is originating from, or NULL if the package was loaded from a file. @param pkg a pointer to package @return a pointer to the DB containing pkg, or NULL.