22.9.10. C API Client Plugin Functions

This section describes functions used for the client-side plugin API. They enable managment of client plugins. For a description of the struct st_mysql_client_plugin structure used by these functions, see Section 23.2.4.4, “Client Plugin API Data Structures”.

It is unlikely that a client program needs to call the functions in this section. Normally, the client causes a plugin to be loaded and used by calling mysql_options() to set the MYSQL_DEFAULT_AUTH and MYSQL_PLUGIN_DIR options:

char *plugin_dir = "path_to_plugin_dir";
char *default_auth = "plugin_name";

mysql_options(&mysql, MYSQL_PLUGIN_DIR, plugin_dir);
mysql_options(&mysql, MYSQL_DEFAULT_AUTH, default_auth);
Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout