mongoc_server_api_new()#

Synopsis#

mongoc_server_api_t *
mongoc_server_api_new (mongoc_server_api_version_t version)
   BSON_GNUC_WARN_UNUSED_RESULT;

Create a struct to hold server API preferences.

Returns#

A new mongoc_server_api_t you must free with mongoc_server_api_destroy().