gsasl_callback_hook_set(3)
π gsasl_callback_hook_set β the lil' function that holds ur stuff β¨
okay bestie, so this is a page from the gsasl manual β yes, THAT gsasl. Buckle up, it's short but it's iconic. π
πΈ NAME πΈ
gsasl_callback_hook_set β it's an API function, babes. An API function. Periodt.
β¨ SYNOPSIS β¨
#include <gsasl.h>
void gsasl_callback_hook_set(Gsasl * ctx, void * hook);
no cap, that's the whole vibe. π
π¦ ARGUMENTS π¦
Gsasl * ctxβ this is ur libgsasl handle. the main character, honestly. πvoid * hookβ an opaque pointer to application specific data. "opaque" meaning we're not looking inside it, we're just holding it for you. it's giving mysterious. πΆοΈ
π« DESCRIPTION π«
So here's the tea: this function stores application specific data in the libgsasl handle. That's it. That's the job. And it slays at it.
Then later β say, inside a callback β you can get that data back by calling gsasl_callback_hook_get(). π«Ά It's literally the matching pair, the bestie duo, the set-and-get situation.
What's it for? It's normally used by the application to maintain a global state between the main program and callbacks. So like, when ur callback needs to remember what the main program was up to, this is how you do it. Global state, but make it β¨deliberateβ¨.
β° SINCE β°
0.2.0 β she's been here since 0.2.0, an OG, a legend, a pioneer. π (affectionate)
π REPORTING BUGS π
Found a bug? Not the vibe. Tell the gsasl girlies:
- Report bugs to <bug-gsasl@gnu.org>.
- General guidelines for reporting bugs:
https://www.gnu.org/gethelp/ - GNU SASL home page:
https://www.gnu.org/software/gsasl/
Β©οΈ COPYRIGHT Β©οΈ
Copyright Β© 2002-2026 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (yes bestie, you can share it, no royalties, just keep the notice β we love a permissive license π)
π SEE ALSO π
The full documentation for gsasl is maintained as a Texinfo manual. If the info and gsasl programs are properly installed at your site, the command
info gsasl
should give you access to the complete manual. As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
like, go read the whole thing, I promise it's worth it. π§
quick reminder bestie: this one's just a setter. it doesn't do the thing, it just holds ur data so the thing can find it later. small function, big responsibility, main character energy fr fr. π
and that's the whole page!! π sign-off time: this was from gsasl version 2.2.4, and the manual section is gsasl_callback_hook_set(3). mwah, go forth and store ur application specific data. πβ¨ππ¦πΈ
π¦ where this page comes from
- arch rolling: gsasl 2.2.4-1 Β· LGPL-2.1-or-later AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libgsasl-dev 2.2.4-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms