MONGOC_CLIENT...REFIX_OPTS_NEW(3)
π 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. π
π COPYRIGHT π
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
- ubuntu resolute: libmongoc-doc 2.2.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms