1MONGOC_READ_PREFS_NEW(3) libmongoc MONGOC_READ_PREFS_NEW(3)
2
3
4
6 mongoc_read_prefs_t *
7 mongoc_read_prefs_new (mongoc_read_mode_t read_mode)
8 BSON_GNUC_WARN_UNUSED_RESULT;
9
11 • read_mode: A mongoc_read_mode_t.
12
14 Creates a new mongoc_read_prefs_t using the mode specified.
15
17 Returns a newly allocated mongoc_read_prefs_t that should be freed with
18 mongoc_read_prefs_destroy().
19
21 MongoDB, Inc
22
24 2017-present, MongoDB, Inc
25
26
27
28
291.25.1 Nov 08, 2023 MONGOC_READ_PREFS_NEW(3)