MySQL 8.0 C API Developer Guide / ... / C API Client Plugin Interface / C API Plugin Function Descriptions / mysql_plugin_get_option()
intmysql_plugin_get_option(struct st_mysql_client_plugin *plugin, const char *option, void *value)Given a plugin structure and an option name, returns the option value. If the plugin does not have an option handler, an error occurs.
Specify the arguments as follows:
plugin: A pointer to the plugin structure.option: The name of the option for which the value is to be returned.value: A pointer to the option value.
mysql_plugin_get_option() was added in MySQL 8.0.27.