libalpm
Arch Linux Package Manager Library
|
Go to the source code of this file.
Functions | |
alpm_pkghash_t * | _alpm_pkghash_create (unsigned int size) |
alpm_pkghash_t * | _alpm_pkghash_add (alpm_pkghash_t *hash, alpm_pkg_t *pkg) |
alpm_pkghash_t * | _alpm_pkghash_add_sorted (alpm_pkghash_t *hash, alpm_pkg_t *pkg) |
alpm_pkghash_t * | _alpm_pkghash_remove (alpm_pkghash_t *hash, alpm_pkg_t *pkg, alpm_pkg_t **data) |
Remove a package from a pkghash. | |
void | _alpm_pkghash_free (alpm_pkghash_t *hash) |
alpm_pkg_t * | _alpm_pkghash_find (alpm_pkghash_t *hash, const char *name) |
alpm_pkghash_t* _alpm_pkghash_add | ( | alpm_pkghash_t * | hash, |
alpm_pkg_t * | pkg | ||
) |
alpm_pkghash_t* _alpm_pkghash_add_sorted | ( | alpm_pkghash_t * | hash, |
alpm_pkg_t * | pkg | ||
) |
Definition at line 200 of file pkghash.c.
Referenced by _alpm_db_add_pkgincache().
alpm_pkghash_t* _alpm_pkghash_create | ( | unsigned int | size | ) |
Definition at line 61 of file pkghash.c.
References __alpm_pkghash_t::buckets, CALLOC, __alpm_pkghash_t::hash_table, and __alpm_pkghash_t::limit.
alpm_pkg_t* _alpm_pkghash_find | ( | alpm_pkghash_t * | hash, |
const char * | name | ||
) |
Definition at line 321 of file pkghash.c.
References _alpm_hash_sdbm(), __alpm_pkghash_t::buckets, __alpm_list_t::data, __alpm_pkghash_t::hash_table, __alpm_pkg_t::name, and __alpm_pkg_t::name_hash.
Referenced by _alpm_db_get_pkgfromcache().
void _alpm_pkghash_free | ( | alpm_pkghash_t * | hash | ) |
Definition at line 309 of file pkghash.c.
References __alpm_pkghash_t::buckets, and __alpm_pkghash_t::hash_table.
Referenced by _alpm_db_free_pkgcache().
alpm_pkghash_t* _alpm_pkghash_remove | ( | alpm_pkghash_t * | hash, |
alpm_pkg_t * | pkg, | ||
alpm_pkg_t ** | data | ||
) |
Remove a package from a pkghash.
hash | the hash to remove the package from |
pkg | the package we are removing |
data | output parameter containing the removed item |
Definition at line 243 of file pkghash.c.
References alpm_list_remove_item(), __alpm_pkghash_t::buckets, __alpm_list_t::data, __alpm_pkghash_t::entries, __alpm_pkghash_t::hash_table, __alpm_pkghash_t::list, __alpm_pkg_t::name, and __alpm_pkg_t::name_hash.
Referenced by _alpm_db_remove_pkgfromcache().