mysql_plugin_options()

2023-07-26 02:37:19  Updated

You can call the mysql_plugin_options() function to pass an option type and value to a plug-in.

Syntax

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

Arguments

  • plugin: a pointer to the plug-in structure.

  • option: an option to be set.

  • value: a pointer to the option value.

Return values

0 is returned for an execution success, and 1 is returned if an error occurred.

If the plug-in has an option handler, that handler should also return 0 for success and 1 if an error occurred.

Notes

You can call the option multiple times to set several options. If the plug-in does not have an option handler, an error occurs.

Contact Us