Client Plugin API
Plugin API reference: Client Plugin API. Generated from the MariaDB server headers by doxygen and moxygen.
API for plugins that work on the client side
Classes
Macros
first byte of the question string is the question "type". It can be an "ordinary" or a "password" question. The last bit set marks a last question in the authentication exchange.
ORDINARY_QUESTION
Defined in auth_dialog_client.h:57
first byte of the question string is the question "type". It can be an "ordinary" or a "password" question. The last bit set marks a last question in the authentication exchange.
LAST_QUESTION
Defined in auth_dialog_client.h:58
PASSWORD_QUESTION
Defined in auth_dialog_client.h:59
LAST_PASSWORD
Defined in auth_dialog_client.h:60
MYSQL_PLUGIN_EXPORT_C
Defined in client_plugin.h:42
MYSQL_PLUGIN_EXPORT
Defined in client_plugin.h:45
C_MODE_START
Defined in client_plugin.h:46
C_MODE_END
Defined in client_plugin.h:47
MYSQL_CLIENT_reserved1
Defined in client_plugin.h:60
MYSQL_CLIENT_reserved2
Defined in client_plugin.h:61
MYSQL_CLIENT_AUTHENTICATION_PLUGIN
Defined in client_plugin.h:62
MYSQL_CLIENT_AUTHENTICATION_PLUGIN_INTERFACE_VERSION
Defined in client_plugin.h:64
MYSQL_CLIENT_MAX_PLUGINS
Defined in client_plugin.h:66
mysql_declare_client_plugin
Defined in client_plugin.h:68
mysql_end_client_plugin
Defined in client_plugin.h:74
MYSQL_CLIENT_PLUGIN_HEADER
Defined in client_plugin.h:77
Typedefs
mysql_authentication_dialog_ask_t
Defined in auth_dialog_client.h:49
type of the mysql_authentication_dialog_ask function
Parameters
mysql
mysql
type
type of the input 1 - ordinary string input 2 - password string
prompt
prompt
buf
a buffer to store the use input
buf_len
the length of the buffer
mysql
mysql
type
type of the input 1 - ordinary string input 2 - password string
prompt
prompt
buf
a buffer to store the use input
buf_len
the length of the buffer
Return Values
a
pointer to the user input string. It may be equal to 'buf' or to 'mysql->password'. In all other cases it is assumed to be an allocated string, and the "dialog" plugin will free() it.
Functions
struct st_mysql_client_plugin *
loads a plugin and initializes it, taking va_list as an argument
struct st_mysql_client_plugin *
finds an already loaded plugin by name, or loads it, if necessary
struct st_mysql_client_plugin *
adds a plugin structure to the list of loaded plugins
mysql_load_plugin
Defined in client_plugin.h:125
loads a plugin and initializes it
Parameters
mysql
struct st_mysql *
MYSQL structure.
name
const char *
a name of the plugin to load
type
int
type of plugin that should be loaded, -1 to disable type check
argc
int
number of arguments to pass to the plugin initialization function
mysql
struct st_mysql *
MYSQL structure.
name
const char *
a name of the plugin to load
type
int
type of plugin that should be loaded, -1 to disable type check
argc
int
number of arguments to pass to the plugin initialization function
Return Values
a
pointer to the loaded plugin, or NULL in case of a failure
mysql_load_plugin_v
Defined in client_plugin.h:145
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.
Parameters
mysql
struct st_mysql *
MYSQL structure.
name
const char *
a name of the plugin to load
type
int
type of plugin that should be loaded, -1 to disable type check
argc
int
number of arguments to pass to the plugin initialization function
args
va_list
arguments for the plugin initialization function
mysql
struct st_mysql *
MYSQL structure.
name
const char *
a name of the plugin to load
type
int
type of plugin that should be loaded, -1 to disable type check
argc
int
number of arguments to pass to the plugin initialization function
args
va_list
arguments for the plugin initialization function
Return Values
a
pointer to the loaded plugin, or NULL in case of a failure
mysql_client_find_plugin
Defined in client_plugin.h:159
finds an already loaded plugin by name, or loads it, if necessary
Parameters
mysql
struct st_mysql *
MYSQL structure.
name
const char *
a name of the plugin to load
type
int
type of plugin that should be loaded
mysql
struct st_mysql *
MYSQL structure.
name
const char *
a name of the plugin to load
type
int
type of plugin that should be loaded
Return Values
a
pointer to the plugin, or NULL in case of a failure
mysql_client_register_plugin
Defined in client_plugin.h:176
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.
Parameters
mysql
struct st_mysql *
MYSQL structure. It is only used for error reporting
mysql
struct st_mysql *
MYSQL structure. It is only used for error reporting
Return Values
a
pointer to the plugin, or NULL in case of a failure
mysql_plugin_options
Defined in client_plugin.h:191
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
Parameters
option
const char *
a string which specifies the option to set
value
const void *
value for the option.
option
const char *
a string which specifies the option to set
value
const void *
value for the option.
Return Values
0
on success, 1 in case of failure
Class Definitions
st_mysql_client_plugin
Defined in client_plugin.h:90
st_mysql_client_plugin_AUTHENTICATION
Defined in client_plugin.h:100
Public Attributes
authenticate_user
Defined in client_plugin.h:103
hash_password_bin
Defined in client_plugin.h:104
This page is licensed: GPLv2
Last updated
Was this helpful?

