MONGOC_OIDC_CALLBACK_NEW(3)
β¨ MONGOC_OIDC_CALLBACK_NEW β¨
okay bestie, so you're in the libmongoc docs and you found this one β welcome to the OIDC callback corner of the universe π«Ά. This is mongoc_oidc_callback_new(3), and honestly? She's a little baby constructor and she ate. π
πΈ SYNOPSIS πΈ
mongoc_oidc_callback_t *
mongoc_oidc_callback_new (mongoc_oidc_callback_fn_t fn)
So what she does: she creates a brand-new mongoc_oidc_callback_t object, and that object stores the OIDC callback function you hand her. That's it. That's the whole vibe. No notes. π
And lowkey the important thing to know β this is equivalent to calling mongoc_oidc_callback_new_with_user_data() with user_data set to NULL. So like, same energy, just without the extra user data slot. iykyk β¨
π¦ PARAMETERS π¦
fnβ amongoc_oidc_callback_fn_t. And listen: it must not beNULL. No cap, that's a hard requirement, not a suggestion π.
π RETURNS π
She returns a fresh mongoc_oidc_callback_t β and heads up, you must free it with mongoc_oidc_callback_destroy() when you're done, because she is not managing her own life. Free your girl. π§
And if you gave her an invalid argument? She returns NULL. Periodt. π
β SEE ALSO β
mongoc_oidc_callback_tmongoc_oidc_callback_new_with_user_data()
π AUTHOR π
MongoDB, Inc β iconic, legendary, the blueprint π
π COPYRIGHT π
2009-present, MongoDB, Inc. β yes, she's been serving since 2009 and she's still on main character energy β
fr fr bestie, don't forget the mongoc_oidc_callback_destroy() or you'll be leaking memory and I will find out ππ
later, bestie πΈβ¨ β this page came from libmongoc version 2.5.6, dated Oct 09, 2026. mwah π«Άπ
π¦ 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