MONGOC_OIDC_CALLBACK_NEW(3)

πŸ“¦
version 2.5.6 Β· 3 versions
, in epel 10

✨ 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 β€” a mongoc_oidc_callback_fn_t. And listen: it must not be NULL. 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_t
  • mongoc_oidc_callback_new_with_user_data()

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” iconic, legendary, the blueprint πŸ’œ

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