globus_hashtable.h(3)
โจ NAME โจ
globus_hashtable.h โ Hash Table ๐
okay bestie so this is the manual for globus_hashtable.h, living in section 3 of the Library Functions Manual, and it is literally the hash table of the globus_common world. bucket era. slay. ๐
๐ฆ SYNOPSIS ๐ฆ
#include 'globus_types.h'
#include 'globus_list.h'
๐ธ Typedefs ๐ธ
these are the function-pointer shapes you gotta match, no cap:
typedef int(* globus_hashtable_hash_func_t) (void *key, int limit)โ the hash function shape, takes akeyand alimitand gives you back anint๐typedef int(* globus_hashtable_keyeq_func_t) (void *key1, void *key2)โ the key-equality predicate shape, takes two keys, hands you aninttypedef void(* globus_hashtable_copy_func_t) (void **dest_key, void **dest_datum, void *src_key, void *src_datum)โ the copy function shape:dest_key,dest_datum,src_key,src_datum, all the pointers, zero return ๐ซถtypedef void(* globus_hashtable_destructor_func_t) (void *datum)โ the destructor shape, takes onedatumand returns nothing, it's giving cleanup energy ๐งน
๐ Functions ๐
int globus_hashtable_init (globus_hashtable_t *table, int size, globus_hashtable_hash_func_t hash_func, globus_hashtable_keyeq_func_t keyeq_func)โ Initialize a hash table. โจvoid * globus_hashtable_lookup (globus_hashtable_t *table, void *key)โ Look up a datum in a hash table. ๐int globus_hashtable_insert (globus_hashtable_t *table, void *key, void *datum)โ Insert a datum into a hash table. ๐ฅvoid * globus_hashtable_update (globus_hashtable_t *table, void *key, void *datum)โ Update a hash table mapping. ๐void * globus_hashtable_remove (globus_hashtable_t *table, void *key)โ Remove a datum from a hash table. ๐๏ธint globus_hashtable_to_list (globus_hashtable_t *table, globus_list_t **list)โ Create a list of all datums in a hash table. ๐globus_bool_t globus_hashtable_empty (globus_hashtable_t *table)โ Test hash table emptiness. ๐ณ๏ธint globus_hashtable_size (globus_hashtable_t *table)โ Hash table size. ๐void * globus_hashtable_first (globus_hashtable_t *table)โ Initialize iterator to first hash table entry. โฎ๏ธvoid * globus_hashtable_next (globus_hashtable_t *table)โ Increment hash table iterator. โญ๏ธvoid * globus_hashtable_last (globus_hashtable_t *table)โ Initialize iterator to last hash table entry. โชvoid * globus_hashtable_prev (globus_hashtable_t *table)โ Decrement hash table iterator. โ๏ธint globus_hashtable_destroy (globus_hashtable_t *table)โ Destroy a hash table
Destroys a hashtable representation, releasing any resources used to represent the mappings (abandoning any data in the queue). After this call, a hashtable is no longer considered initialized. " ๐ญ
bestie the quote mark at the end is not me being chaotic, it's literally in there. and yes, that whole destroy paragraph is what globus_hashtable_destroy does. once it's destroyed the hashtable is no longer considered initialized, so don't come for her afterwards. periodt. ๐
int globus_hashtable_string_hash (void *string, int limit)โ Null-terminated string hash function. ๐งตint globus_hashtable_string_keyeq (void *string1, void *string2)โ Null-terminated string equality predicate. ๐ฐint globus_hashtable_voidp_hash (void *voidp, int limit)โ Void pointer hash function. ๐ปint globus_hashtable_voidp_keyeq (void *voidp1, void *voidp2)โ Void pointer equality predicate. ๐ซงint globus_hashtable_int_hash (void *integer, int limit)โ Integer hash function. ๐ขint globus_hashtable_int_keyeq (void *integer1, void *integer2)โ Integer equality predicate. โ๏ธ
๐ Detailed Description ๐
Hash Table.
๐ Author ๐
Generated automatically by Doxygen for globus_common from the source code. ๐คโจ
and that's the whole thing, bestie โ this page came from globus_common, Version 18.15, and it's globus_hashtable.h(3). go forth and hash responsibly, ily ๐ซถ๐๐
๐ฆ where this page comes from
- epel 10: globus-common-doc 18.15-1.el10_2 ยท Apache-2.0
- fedora 43: globus-common-doc 18.15-1.fc43 ยท Apache-2.0
- fedora 44: globus-common-doc 18.15-2.fc44 ยท Apache-2.0
- ubuntu resolute: libglobus-common-doc 18.15-1 ยท Apache-2.0
- ubuntu stonking: libglobus-common-doc 18.15-2 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms