<?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_gridfs_create_file">
  <info>
    <link type="guide" xref="mongoc_gridfs_t" group="function"/>
  </info>
  <title>mongoc_gridfs_create_file()</title>
  <section id="synopsis">
    <title>Synopsis</title>
    <synopsis><code mime="text/x-csrc"><![CDATA[mongoc_gridfs_file_t *
mongoc_gridfs_create_file (mongoc_gridfs_t          *gridfs,
                           mongoc_gridfs_file_opt_t *opt);
]]></code></synopsis>
  </section>

  <section id="parameters">
    <title>Parameters</title>
    <table>
      <tr><td><p>gridfs</p></td><td><p>A <code xref="mongoc_gridfs_t">mongoc_gridfs_t</code>.</p></td></tr>
      <tr><td><p>opt</p></td><td><p>A <code xref="mongoc_gridfs_file_opt_t">mongoc_gridfs_file_opt_t</code> to specify file options.</p></td></tr>
    </table>
  </section>

  <section id="description">
    <title>Description</title>
    <p>This function shall create a new <code xref="mongoc_gridfs_file_t">mongoc_gridfs_file_t</code>.</p>
    <p>Use <code xref="mongoc_gridfs_file_writev">mongoc_gridfs_file_writev()</code> to write to the file.</p>
  </section>

  <section id="return">
    <title>Returns</title>
    <p>Returns a newly allocated <code xref="mongoc_gridfs_file_t">mongoc_gridfs_file_t</code> that should be freed with <code xref="mongoc_gridfs_file_destroy">mongoc_gridfs_file_destroy()</code>.</p>
  </section>

</page>
