[][src]Function alpm_sys_fork::alpm_pkg_get_db

pub unsafe extern "C" fn alpm_pkg_get_db(pkg: *mut alpm_pkg_t) -> *mut alpm_db_t

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.