MONGOC_APM_TOP...US_DESCRIPTION(3)

Okay bestie, so this one's from libmongoc and it's like, a tiny little getter function β€” but the vibe check it's delivering? Lowkey important. It's called mongoc_apm_topology_changed_get_previous_description, and yeah the manpage title got cut off mid-word (MONGOC_APM_TOP...US_DESCRIPTION(3) β€” iconic truncation energy, honestly 😭), but the function name is right there in the synopsis, so we're fine.


✨ SYNOPSIS ✨

const mongoc_topology_description_t *
mongoc_apm_topology_changed_get_previous_description (
   const mongoc_apm_topology_changed_t *event);

So what does it do? Bestie. It returns this event's previous description. That's it. That's the whole thing. πŸŽ€

πŸ’€ HUGE caveat, do not skip this: the data is only valid in the scope of the callback that receives this event. If you're gonna touch it after the callback returns, copy it. Like, actually copy it. Not "eh it'll be fine" copy it. This is undefined-behaviour territory, iykyk.

🌸 PARAMETERS 🌸

  • event β€” a mongoc_apm_topology_changed_t. That's the one. That's the arg. 🫢

πŸ‘‘ RETURNS πŸ‘‘

A mongoc_topology_description_t β€” and hear me say this clearly: it should not be modified or freed. Do not touch it. Do not free it. Do not rearrange its little outfit. It is not yours to own, it's just visiting. ✨

SEE ALSO: Introduction to Application Performance Monitoring

πŸ’… AUTHOR πŸ’…

MongoDB, Inc β€” yes, that MongoDB, Inc. Main character energy fr fr. πŸ¦‹


2009-present, MongoDB, Inc. β€” a whole legacy, periodt.


Mwah πŸ’œ that's the whole page, and it came to you courtesy of libmongoc, version 2.5.6, dated Oct 09 β€” go forth and not modify or free that description, bestie, I'm begging πŸ™ˆβœ¨

πŸ“¦ where this page comes from