<?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="bson_context_new">
  <info>
    <link type="guide" xref="bson_context_t" group="function"/>
  </info>
  <title>bson_context_new()</title>

  <section id="synopsis">
    <title>Synopsis</title>
    <synopsis><code mime="text/x-csrc"><![CDATA[bson_context_t *
bson_context_new (bson_context_flags_t flags);
]]></code></synopsis>
  </section>

  <section id="parameters">
    <title>Parameters</title>
    <table>
      <tr><td><p><code>flags</code></p></td><td><p>A <link xref="bson_context_t">bson_context_flags_t</link>.</p></td></tr>
    </table>
  </section>

  <section id="description">
    <title>Description</title>
    <p>Creates a new <link xref="bson_context_t">bson_context_t</link>. This is rarely needed as <link xref="bson_context_get_default">bson_context_get_default()</link> serves most use-cases.</p>
  </section>

  <section id="return">
    <title>Returns</title>
    <p>A newly allocated <link xref="bson_context_t">bson_context_t</link> that should be freed with <link xref="bson_context_destroy">bson_context_destroy</link>.</p>
  </section>
</page>
