27.7.13.2 mysql_client_register_plugin()
struct st_mysql_client_plugin *mysql_client_register_plugin(MYSQL *mysql, struct st_mysql_client_plugin *plugin)
Description
将插件结构添加到已加载插件的列 table 中。如果插件已加载,则会发生错误。
指定参数,如下所示:
-
mysql
:指向MYSQL
结构的指针。插件 API 不需要连接到 MySQL 服务器,但是必须正确初始化此结构。该结构用于获取与连接有关的信息。 -
plugin
:指向插件结构的指针。
Return Values
指向成功插件的指针。 NULL
如果发生错误。
Errors
要检查错误,请调用mysql_error()或mysql_errno()函数。参见第 27.7.6.15 节,“ mysql_error()”和第 27.7.6.14 节“ mysql_errno()”。