<?xml version="1.0"?>

<page xmlns="http://projectmallard.org/1.0/"
      type="topic"
      style="function"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/experimental/ui/"
      id="mongoc_database_get_write_concern">


  <info>
    <link type="guide" xref="mongoc_database_t" group="function"/>
  </info>
  <title>mongoc_database_get_write_concern()</title>

  <section id="synopsis">
    <title>Synopsis</title>
    <synopsis><code mime="text/x-csrc"><![CDATA[const mongoc_write_concern_t *
mongoc_database_get_write_concern (const mongoc_database_t *database);]]></code></synopsis>
    <p>This function retrieves the default <link xref="mongoc_write_concern_t">mongoc_write_concern_t</link> to use with <code>database</code> as configured by the client.</p>
  </section>

  <section id="parameters">
    <title>Parameters</title>
    <table>
      <tr><td><p>database</p></td><td><p>A <link xref="mongoc_database_t">mongoc_database_t</link>.</p></td></tr>
    </table>
  </section>

  <section id="return">
    <title>Returns</title>
    <p>A <link xref="mongoc_write_concern_t">mongoc_write_concern_t</link> that should not be modified or freed.</p>
  </section>

</page>
