struct st_mysql_client_plugin *
mysql_client_register_plugin(MYSQL *mysql,
struct st_mysql_client_plugin *plugin)
Adds a plugin structure to the list of loaded plugins. An error occurs if the plugin is already loaded.
Specify the arguments as follows:
mysql
: A pointer to aMYSQL
structure. The plugin API does not require a connection to a MySQL server, but this structure must be properly initialized. The structure is used to obtain connection-related information.plugin
: A pointer to the plugin structure.
To check for errors, call the
mysql_error()
or
mysql_errno()
function. See
Section 5.4.16, “mysql_error()”, and
Section 5.4.15, “mysql_errno()”.