MONGOC_CLIENT...REFIX_OPTS_NEW(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

πŸ’… MONGOC_CLIENT...REFIX_OPTS_NEW(3) πŸ’…

okay bestie, welcome to libmongoc, the C driver manual, and this lil page is all about one tiny function that makes one tiny struct. it's giving ✨allocator energy✨ and honestly? we're obsessed.


✨ SYNOPSIS ✨

here's the whole vibe, no cap:

mongoc_client_encryption_encrypt_text_prefix_opts_t *
mongoc_client_encryption_encrypt_text_prefix_opts_new(void);

Added in version 2.2.0. πŸŽ€ so if you're on an older libmongoc, this is not your moment. upgrade and come back, iykyk.


🫢 RETURNS 🫢

she hands you back a brand-new mongoc_client_encryption_encrypt_text_prefix_opts_t πŸ’– and like… the way that you have to free it with mongoc_client_encryption_encrypt_text_prefix_opts_destroy()? yeah. no skipping that. free your memory, be a main character, not a memory leak. 😭

See also

  • mongoc_client_encryption_encrypt_text_prefix_opts_destroy() 🧚
  • mongoc_client_encryption_encrypt_text_opts_set_prefix() πŸ¦‹

πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc β€” periodt. the legends themselves. πŸ‘‘


2009-present, MongoDB, Inc. 🌈


okay that's the whole page, bestie, you ate πŸ“ this lil slice of libmongoc 2.2.2 dropped on Feb 13, 2026, so go forth, allocate, and destroy. slay πŸ’…βœ¨

πŸ“¦ where this page comes from