MySQL :: MySQL 8.4 C API Developer Guide :: 9.2.6 mysql_plugin_options() (original) (raw)

The world's most popular open source database

9.2.6 mysql_plugin_options()

int
mysql_plugin_options(struct st_mysql_client_plugin *plugin,
                     const char *option,
                     const void *value)

Description

Passes an option type and value to a plugin. This function can be called multiple times to set several options. If the plugin does not have an option handler, an error occurs.

Specify the arguments as follows:

Return Values

Zero for success, 1 if an error occurred. If the plugin has an option handler, that handler should also return zero for success and 1 if an error occurred.