SYNOPSIS

mongoc_read_mode_t   mongoc_read_prefs_get_mode (const mongoc_read_prefs_t *read_prefs);
void                 mongoc_read_prefs_set_mode (mongoc_read_prefs_t       *read_prefs,
                                                 mongoc_read_mode_t         mode);
const bson_t        *mongoc_read_prefs_get_tags (const mongoc_read_prefs_t *read_prefs);
void                 mongoc_read_prefs_set_tags (mongoc_read_prefs_t       *read_prefs,
                                                 const bson_t              *tags);

DESCRIPTION

The mongoc_read_prefs_get() functions shall return values from the read_prefs.

The mongoc_read_prefs_set() functions set attributes from the read_prefs.

mongoc_read_prefs_*et_tags() sets and gets a bson array of tags (I.e. keyed from 0..n).

RETURN VALUE

The mongoc_read_prefs_get() functions returns appropriate read only types.

The mongoc_read_prefs_set() functions set their attribute.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.