MONGOC_OIDC_CALLBACK_FN_T(3)
π MONGOC_OIDC_CALLBACK_FN_T(3) β a libmongoc moment
okay bestie, so this one is a manual page from libmongoc and it is literally just about one typedef. one. and honestly? she's serving function-pointer realness and we respect it. let's get into it β¨
β¨ SYNOPSIS β¨
typedef mongoc_oidc_credential_t *(*mongoc_oidc_callback_fn_t) (mongoc_oidc_callback_params_t *params);
so this is the type of the function pointer that gets stored by mongoc_oidc_callback_t. that's the whole vibe. it's a callback signature, it points at a function, and that function is expected to hand back a credential. no cap π«Ά
π PARAMETERS π
paramsβ amongoc_oidc_callback_params_tobject, and she's an in/out situation: she carries the in/out parameters of amongoc_oidc_callback_t. both directions, main character energy π
π₯ RETURNS π₯
so your function gives back a mongoc_oidc_credential_t object β one you made with mongoc_oidc_credential_new() β or NULL, which is the signal for an error or a timeout. two very different moods, same NULL. π
the rules, and these are MUSTs so like, actually listen:
- the function MUST return a
mongoc_oidc_credential_tobject to indicate success π - the function MUST return
NULLto indicate an error - the function MUST call
mongoc_oidc_callback_params_cancel_with_timeout()before returningNULL, if what actually happened was a timeout and not an error. like β tell the truth about which one it was, bestie π
β οΈ heads up: thecancel_with_timeoutout parameter gets ignored if the return value is notNULL. so if you're returning a real credential, that param is just standing there, unread. π
π¦ SEE ALSO π¦
mongoc_oidc_callback_tmongoc_oidc_callback_params_tmongoc_oidc_credential_t
go read those next, iykyk πΈ
π AUTHOR π
MongoDB, Inc β icons only β
π COPYRIGHT π
2009-present, MongoDB, Inc. β periodt.
and that's the whole page, bestie! π this little beauty came to you from libmongoc version 2.5.6, dated Oct 09, 2026, and she's titled MONGOC_OIDC_CALLBACK_FN_T(3) β mwah, slay, go write that callback π§π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms