MySQL 9.4 C API Developer Guide / ... / C API Client Plugin Interface / C API Plugin Function Descriptions / mysql_client_find_plugin()
struct st_mysql_client_plugin *mysql_client_find_plugin(MYSQL *mysql, const char *name, int type)Returns a pointer to a loaded plugin, loading the plugin first if necessary. An error occurs if the type is invalid or the plugin cannot be found or loaded.
Specify the arguments as follows:
mysql: A pointer to aMYSQLstructure. 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.name: The plugin name.type: The plugin type.
To check for errors, call themysql_error() ormysql_errno() function. SeeSection 5.4.16, “mysql_error()”, andSection 5.4.15, “mysql_errno()”.