You can call the mysql_client_find_plugin() function to return the pointer to a loaded plug-in.
Syntax
struct st_mysql_client_plugin *
mysql_client_find_plugin(MYSQL *mysql,
const char *name,
int type)
Arguments
mysql: a pointer to a connection structure. The plug-in API does not need to connect to the OBServer but must correctly perform initialization. This structure is used to obtain connection information.name: the name of the plug-in.type: the type of the plug-in.
Return values
A pointer to a plug-in is returned, and NULL is returned if an error occurred.
Errors
Call the mysql_error() or mysql_errno() function to check for errors.
Notes
Load the plug-in first, if necessary. An error occurs if the type is invalid, or the plug-in cannot be found or loaded.