.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_URI_GET_COMPRESSORS" "3" "Oct 20, 2022" "1.23.1" "libmongoc" .SH NAME mongoc_uri_get_compressors \- mongoc_uri_get_compressors() .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C const bson_t * mongoc_uri_get_compressors (const mongoc_uri_t *uri); .ft P .fi .UNINDENT .UNINDENT .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBuri\fP: A \fI\%mongoc_uri_t\fP\&. .UNINDENT .SH DESCRIPTION .sp Returns a bson document with the enabled compressors as the keys or an empty document if no compressors were provided. .SH EXAMPLE .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C mongoc_client_t *client; mongoc_uri_t *uri; uri = mongoc_uri_new ("mongodb://localhost/?compressors=zlib,snappy,zstd"); if (bson_has_field (mongoc_uri_get_compressors (uri), "snappy")) { /* snappy enabled */ } .ft P .fi .UNINDENT .UNINDENT .SH RETURNS .sp A bson_t * which should not be modified or freed. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .