MONGOC_OIDC_C..._GET_USER_DATA(3)

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

πŸ’… MONGOC_OIDC_C..._GET_USER_DATA(3) πŸ’…

okay so bestie, welcome to the libmongoc corner of the manual β€” this one's a tiny little function that's honestly a whole vibe: it just hands you back your own pointer. no cap. 🫢

void *
mongoc_oidc_callback_params_get_user_data (const mongoc_oidc_callback_params_t *params);

it returns the pointer to user data that was stored by an associated mongoc_oidc_callback_t object. that's it. that's the whole function. iconic behaviour, honestly πŸŽ€


✨ SYNOPSIS ✨

void *
mongoc_oidc_callback_params_get_user_data (const mongoc_oidc_callback_params_t *params);

so like, you call it, you pass it your params, it gives you back the pointer to user data that was stored by an associated mongoc_oidc_callback_t object. literally that simple β€” no hidden lore, no side quests, she just returns the thing. πŸ’–


🌸 PARAMETERS 🌸

  • params β€” a mongoc_oidc_callback_params_t. that's the one and only argument, bestie. just hand her the params and she's happy πŸ¦‹

⭐ RETURNS ⭐

a pointer to user data or NULL. yep β€” NULL is a totally valid answer here, don't panic if you get it. πŸ’€


🧚 LIFECYCLE 🧚

the lifetime of the object pointed to by user_data is managed the user. that's you. you're the main character here and the memory management is your responsibility πŸ‘‘ like, this function is not gonna free it, not gonna babysit it, not gonna do anything except point at it. you own that pointer, you handle its whole arc. no cap.

πŸ” SEE ALSO πŸ”

  • mongoc_oidc_callback_params_t
  • mongoc_oidc_callback_t
  • mongoc_oidc_callback_set_user_data()

go read those if you wanna know how the user data got into the params in the first place, iykyk 🌈


πŸ’œ AUTHOR πŸ’œ

MongoDB, Inc β€” we stan 🫢

2009-present, MongoDB, Inc.


ngl bestie, that was a short one. hydration check, go drink some water, and remember: the pointer is yours, the lifetime is yours, the vibes are immaculate πŸ’…βœ¨

libmongoc version 2.5.6, dated Oct 09, 2026 β€” catch you on the next page, bestie! πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from