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

  <info>
    <link type="guide" xref="bson_reader_t" group="function"/>
  </info>

  <title>bson_reader_destroy_func_t</title>

  <section id="synopsis">
      <title>Synopsis</title>
      <synopsis><code mime="text/x-csrc"><![CDATA[typedef void (*bson_reader_destroy_func_t) (void *handle);
]]></code></synopsis>
  </section>

  <section id="parameters">
    <title>Parameters</title>
    <table>
      <tr><td><p><code>handle</code></p></td><td><p>The opaque handle provided to <code xref="bson_reader_new_from_handle">bson_reader_new_from_handle</code>.</p></td></tr>
    </table>
  </section>

  <section id="description">
    <title>Description</title>
    <p>An optional callback function that will be called when a <code xref="bson_reader_t">bson_reader_t</code> created with <code xref="bson_reader_new_from_handle">bson_reader_new_from_handle</code> is destroyed with <code xref="bson_reader_destroy">bson_reader_destroy()</code>.</p>
    <p>The handle used when creating the reader is passed to this callback.</p>
  </section>
</page>
