Go to the source code of this file.
Typedefs | |
| typedef hashTable_s * | hashTable |
| typedef unsigned int(* | hashFunctionType )(const void *string) |
| typedef int(* | hashEqualityType )(const void *key1, const void *key2) |
Functions | |
| unsigned int | hashFunctionString (const void *string) |
| Return hash value of a string. More... | |
| int | hashEqualityString (const void *key1, const void *key2) |
| Compare two hash table entries for equality. More... | |
| hashTable | htCreate (int numBuckets, int keySize, int freeData, hashFunctionType fn, hashEqualityType eq) |
| Create hash table. More... | |
| hashTable | htFree (hashTable ht) |
| Destroy hash table. More... | |
| void | htAddEntry (hashTable ht, const void *key, const void *data) |
| Add item to hash table. More... | |
| int | htGetEntry (hashTable ht, const void *key, const void ***data, int *dataCount, const void **tableKey) |
| Retrieve item from hash table. More... | |
| int | htHasEntry (hashTable ht, const void *key) |
| Check for key in hash table. More... | |
Definition in file rpmhash.h.
|
|
Definition at line 24 of file rpmhash.h. Referenced by htCreate. |
|
|
Definition at line 19 of file rpmhash.h. Referenced by htCreate. |
|
|
|
|
||||||||||||
|
Compare two hash table entries for equality.
|
|
|
Return hash value of a string.
|
|
||||||||||||||||
|
Add item to hash table.
Definition at line 106 of file rpmhash.c. Referenced by doLookup. |
|
||||||||||||||||||||||||
|
Create hash table. If keySize > 0, the key is duplicated within the table (which costs memory, but may be useful anyway.
Definition at line 87 of file rpmhash.c. Referenced by fpCacheCreate. |
|
|
Destroy hash table.
Definition at line 139 of file rpmhash.c. Referenced by fpCacheFree. |
|
||||||||||||||||||||||||
|
Retrieve item from hash table.
Definition at line 182 of file rpmhash.c. Referenced by cacheContainsDirectory. |
|
||||||||||||
|
Check for key in hash table.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002