globus_handle_table.h(3)
π globus_handle_table.h β NAME π
okay so bestie, gather round: this is globus_handle_table.h, and it's the Handle Table for Reference Counting Data. that's the whole vibe. it's a header from globus_common, and it lives in the Library Functions Manual section, fr fr.
β¨ SYNOPSIS β¨
the way you pull this whole thing in is literally just:
#include 'globus_types.h'
that's it. that's the door. πͺβ¨
π Macros π
#define GLOBUS_NULL_HANDLEβ the null handle, no cap. your go-to "nothing here" handle value.
π¦ Typedefs π¦
typedef struct globus_l_handle_table_s * globus_handle_table_tβ this is the handle table abstract type. it's abstract, it's mysterious, it's giving main character energy. you don't poke at its insides, you just use it. πtypedef int globus_handle_tβ and this is the handle abstract type. yes bestie, it's literally anintunder there, but we're being ~abstract~ about it.typedef void(* globus_handle_destructor_t) (void *datum)β the handle datum destructor. it's a function pointer that takes avoid *datumand returnsvoid, and it's the thing that gets called to clean up your datum when the refs all run out. iconic behaviour. π§Ή
π Functions π
int globus_handle_table_init (globus_handle_table_t *handle_table, globus_handle_destructor_t destructor)β sets up your handle table, and takes thedestructorit's gonna use. (the original page gives this one no extra blurb, so i'm not gonna invent one. respect the source. π)int globus_handle_table_destroy (globus_handle_table_t *handle_table)β Destroy a handle table. dramatic? maybe. accurate? absolutely.globus_handle_t globus_handle_table_insert (globus_handle_table_t *handle_table, void *datum, int initial_refs)β drops adatuminto the table withinitial_refsreferences and hands you back a handle. (again, no extra blurb in the original β just the signature, and i'm not making stuff up.)globus_bool_t globus_handle_table_increment_reference (globus_handle_table_t *handle_table, globus_handle_t handle)β Add a reference to a handle table entry. one more bestie holding on. π«Άglobus_bool_t globus_handle_table_increment_reference_by (globus_handle_table_t *handle_table, globus_handle_t handle, unsigned int inc)β Increment the reference count for handle. but, like, byincat once, because sometimes you gotta bulk-buy your references. π₯globus_bool_t globus_handle_table_decrement_reference (globus_handle_table_t *handle_table, globus_handle_t handle)β Remove a reference to a handle.</p> when the count hits the floor, that destructor you registered earlier gets its moment. πvoid * globus_handle_table_lookup (globus_handle_table_t *handle_table, globus_handle_t handle)β Resolve a handle its datum. you hand it the handle, it hands you back the actualvoid *thing you stashed. the glow-up from handle to datum. β
πΈ Detailed Description πΈ
Handle Table for Reference Counting Data.
that's the whole point of this header. handle table. reference counting. data. slay. β¨
π«Ά Author π«Ά
Generated automatically by Doxygen for globus_common from the source code. not a human bestie, a robot bestie. be nice to it. π€π
okay that's the whole page, and here's your cute sign-off: this lil' page is globus_handle_table.h(3) from globus_common, Version 18.15. go forth and reference count responsibly, bestie. periodt. π
ππ¦π
π¦ 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