---
name: "bson_reader_destroy_func_t"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_reader_destroy_func_t"
---

# bson\_reader\_destroy\_func\_t(3)

## SYNOPSIS

```
typedef void (*bson_reader_destroy_func_t) (void *handle);
```

## PARAMETERS

- •

  **handle**: The opaque handle provided to *bson\_reader\_new\_from\_handle()*.

## DESCRIPTION

An optional callback function that will be called when a *bson\_reader\_t* created with *bson\_reader\_new\_from\_handle()* is destroyed with *bson\_reader\_destroy()*.

The handle used when creating the reader is passed to this callback.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
