> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/plugins/api-plugin/plugin_api.md).

# Plugin API

Plugin API reference: Plugin API. Generated from the MariaDB server headers by doxygen and moxygen.

The Plugin API is a set of interfaces for handling plugins.

## Groups

| Name                                                                                                                                 | Description                            |
| ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------- |
| [`Plugin Types`](https://mariadb.com/docs/server/reference/plugins/api-plugin/plugin_api/plugin_types.md)                            | The available plugin APIs (types).     |
| [`Plugin Declaration`](https://mariadb.com/docs/server/reference/plugins/api-plugin/plugin_api/plugin_declaration.md)                | How to declare a plugin to the server. |
| [`Services for Plugins`](https://mariadb.com/docs/server/reference/plugins/api-plugin/plugin_api/plugin_api_services_for_plugins.md) | Plugins calling back into the server.  |

## Macros

| Name                      | Description |
| ------------------------- | ----------- |
| [`MYSQL_THD`](#mysql_thd) |             |

***

### MYSQL\_THD

```cpp
#define MYSQL_THD THD*
```

Defined in plugin.h:66

## Typedefs

| Return | Name                  | Description |
| ------ | --------------------- | ----------- |
| `char` | [`my_bool`](#my_bool) |             |

***

### my\_bool

```cpp
using my_bool = char
```

Defined in plugin.h:72

<sub>*This page is licensed: GPLv2*</sub>

{% @marketo/form formId="4316" %}
