MySQL 5.6.14 Source Code Document
|
Go to the source code of this file.
Classes | |
struct | st_mysql_client_plugin |
struct | st_mysql_client_plugin_AUTHENTICATION |
Functions | |
struct st_mysql_client_plugin * | mysql_load_plugin (struct st_mysql *mysql, const char *name, int type, int argc,...) |
struct st_mysql_client_plugin * | mysql_load_plugin_v (struct st_mysql *mysql, const char *name, int type, int argc, va_list args) |
struct st_mysql_client_plugin * | mysql_client_find_plugin (struct st_mysql *mysql, const char *name, int type) |
struct st_mysql_client_plugin * | mysql_client_register_plugin (struct st_mysql *mysql, struct st_mysql_client_plugin *plugin) |
int | mysql_plugin_options (struct st_mysql_client_plugin *plugin, const char *option, const void *value) |
MySQL Client Plugin API
This file defines the API for plugins that work on the client side
Definition in file client_plugin.h.
#define MYSQL_CLIENT_PLUGIN_HEADER |
Definition at line 48 of file client_plugin.h.
#define mysql_declare_client_plugin | ( | X | ) |
Definition at line 40 of file client_plugin.h.
|
read |
finds an already loaded plugin by name, or loads it, if necessary
mysql | MYSQL structure. |
name | a name of the plugin to load |
type | type of plugin that should be loaded |
a | pointer to the plugin, or NULL in case of a failure |
Definition at line 478 of file client_plugin.c.
|
read |
adds a plugin structure to the list of loaded plugins
This is useful if an application has the necessary functionality (for example, a special load data handler) statically linked into the application binary. It can use this function to register the plugin directly, avoiding the need to factor it out into a shared object.
mysql | MYSQL structure. It is only used for error reporting |
plugin | an st_mysql_client_plugin structure to register |
a | pointer to the plugin, or NULL in case of a failure |
Definition at line 319 of file client_plugin.c.
|
read |
loads a plugin and initializes it
mysql | MYSQL structure. |
name | a name of the plugin to load |
type | type of plugin that should be loaded, -1 to disable type check |
argc | number of arguments to pass to the plugin initialization function |
... | arguments for the plugin initialization function |
a | pointer to the loaded plugin, or NULL in case of a failure |
Definition at line 466 of file client_plugin.c.
|
read |
loads a plugin and initializes it, taking va_list as an argument
This is the same as mysql_load_plugin, but take va_list instead of a list of arguments.
mysql | MYSQL structure. |
name | a name of the plugin to load |
type | type of plugin that should be loaded, -1 to disable type check |
argc | number of arguments to pass to the plugin initialization function |
args | arguments for the plugin initialization function |
a | pointer to the loaded plugin, or NULL in case of a failure |
Definition at line 344 of file client_plugin.c.
int mysql_plugin_options | ( | struct st_mysql_client_plugin * | plugin, |
const char * | option, | ||
const void * | value | ||
) |
set plugin options
Can be used to set extra options and affect behavior for a plugin. This function may be called multiple times to set several options
plugin | an st_mysql_client_plugin structure |
option | a string which specifies the option to set |
value | value for the option. |
0 | on success, 1 in case of failure |
Definition at line 508 of file client_plugin.c.