MONGOC_OIDC_C..._GET_USER_DATA(3)
π 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β amongoc_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_tmongoc_oidc_callback_tmongoc_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 π«Ά
π COPYRIGHT π
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
- 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