MONGOC_APM_TOP...ED_GET_CONTEXT(3)
π¦ MONGOC_APM_TOP...ED_GET_CONTEXT(3) π¦
okay so this is a page from libmongoc (yes bestie, the MongoDB C driver, we're in the C trenches today π ) and it's about exactly one tiny little function that pulls the context pointer back out of a topology-closed event. that's it. that's the whole vibe. short and sweet, like a good iced coffee β¨
πΈ SYNOPSIS πΈ
here's the whole signature, copied exactly, no cap:
void *
mongoc_apm_topology_closed_get_context (
const mongoc_apm_topology_closed_t *event);
and what does it do? it returns this event's context. that's the entire personality. π
π PARAMETERS π
- event β a
mongoc_apm_topology_closed_t. that's the type, that's the whole requirement, she's not picky π«Ά
π RETURNS π
it hands you back the pointer you passed in with mongoc_client_set_apm_callbacks() or mongoc_client_pool_set_apm_callbacks(). so likeβ¦ you gave it a little gift earlier, and now it's giving it back. reciprocal queen behavior π
π SEE ALSO π
- Introduction to Application Performance Monitoring
π§ AUTHOR π§
MongoDB, Inc β iconic, no notes π
π COPYRIGHT π
2009-present, MongoDB, Inc. β they've been at this a minute fr fr β
and that's the page!! mwah π β this little slice of the docs ships with libmongoc 2.5.6, dated Oct 09, so go forth and get your contexts back, 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