MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
MySQL 5.6.14 Source Code Document
replication of field metadata works.
ndbapi_simple.cpp
ndbapi_async.cpp
ndbapi_async1.cpp
ndbapi_retries.cpp
ndbapi_simple_index.cpp
ndbapi_scan.cpp
ndbapi_event.cpp
Adaptive Send Algorithm
MySQL Cluster Concepts
basic.cpp
common.hpp
br_test.cpp
ptr_binding_test.cpp
The Performance Schema main page
Performance schema: instrumentation interface page.
Performance schema: the aggregates page.
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
client
cmake
cmd-line-utils
dbug
extra
include
atomic
mysql
psi
client_authentication.h
client_plugin.h
get_password.h
innodb_priv.h
plugin.h
plugin_audit.h
plugin_auth.h
plugin_auth_common.h
plugin_ftparser.h
plugin_validate_password.h
service_my_plugin_log.h
service_my_snprintf.h
service_mysql_string.h
service_thd_alloc.h
service_thd_wait.h
service_thread_scheduler.h
services.h
thread_pool_priv.h
base64.h
big_endian.h
byte_order_generic.h
byte_order_generic_x86.h
byte_order_generic_x86_64.h
crypt_genhash_impl.h
decimal.h
errmsg.h
ft_global.h
hash.h
heap.h
keycache.h
lf.h
little_endian.h
m_ctype.h
m_string.h
my_aes.h
my_alarm.h
my_alloc.h
my_atomic.h
my_attribute.h
my_base.h
my_bit.h
my_bitmap.h
my_byteorder.h
my_compare.h
my_compiler.h
my_dbug.h
my_default.h
my_dir.h
my_getopt.h
my_global.h
my_libwrap.h
my_list.h
my_md5.h
my_net.h
my_nosys.h
my_pthread.h
my_rdtsc.h
my_rnd.h
my_stacktrace.h
my_sys.h
my_time.h
my_tree.h
my_uctype.h
my_user.h
my_xml.h
myisam.h
myisammrg.h
myisampack.h
mysql.h
mysql_com.h
mysql_com_server.h
mysql_embed.h
mysql_time.h
mysys_err.h
password.h
probes_mysql.h
probes_mysql_nodtrace.h
queues.h
service_versions.h
sha1.h
sha2.h
sql_common.h
sslopt-case.h
sslopt-longopts.h
sslopt-vars.h
t_ctype.h
thr_alarm.h
thr_lock.h
typelib.h
violite.h
waiting_threads.h
welcome_copyright_notice.h
libevent
libmysql
libmysqld
libservices
mysql-test
mysys
mysys_ssl
packaging
plugin
regex
scripts
sql
sql-common
storage
strings
support-files
tests
unittest
vio
zlib
File Members
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
client_plugin.h
Go to the documentation of this file.
1
#ifndef MYSQL_CLIENT_PLUGIN_INCLUDED
2
/* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
16
24
#define MYSQL_CLIENT_PLUGIN_INCLUDED
25
26
#ifndef MYSQL_ABI_CHECK
27
#include <stdarg.h>
28
#include <stdlib.h>
29
#endif
30
31
/* known plugin types */
32
#define MYSQL_CLIENT_reserved1 0
33
#define MYSQL_CLIENT_reserved2 1
34
#define MYSQL_CLIENT_AUTHENTICATION_PLUGIN 2
35
36
#define MYSQL_CLIENT_AUTHENTICATION_PLUGIN_INTERFACE_VERSION 0x0100
37
38
#define MYSQL_CLIENT_MAX_PLUGINS 3
39
40
#define mysql_declare_client_plugin(X) \
41
MYSQL_PLUGIN_EXPORT struct st_mysql_client_plugin_ ## X \
42
_mysql_client_plugin_declaration_ = { \
43
MYSQL_CLIENT_ ## X ## _PLUGIN, \
44
MYSQL_CLIENT_ ## X ## _PLUGIN_INTERFACE_VERSION,
45
#define mysql_end_client_plugin }
46
47
/* generic plugin header structure */
48
#define MYSQL_CLIENT_PLUGIN_HEADER \
49
int type; \
50
unsigned int interface_version; \
51
const char *name; \
52
const char *author; \
53
const char *desc; \
54
unsigned int version[3]; \
55
const char *license; \
56
void *mysql_api; \
57
int (*init)(char *, size_t, int, va_list); \
58
int (*deinit)(); \
59
int (*options)(const char *option, const void *);
60
61
struct
st_mysql_client_plugin
62
{
63
MYSQL_CLIENT_PLUGIN_HEADER
64
};
65
66
struct
st_mysql
;
67
68
/******** authentication plugin specific declarations *********/
69
#include <
mysql/plugin_auth_common.h
>
70
71
struct
st_mysql_client_plugin_AUTHENTICATION
72
{
73
MYSQL_CLIENT_PLUGIN_HEADER
74
int (*authenticate_user)(
MYSQL_PLUGIN_VIO
*vio,
struct
st_mysql
*mysql);
75
};
76
77
/******** using plugins ************/
78
92
struct
st_mysql_client_plugin
*
93
mysql_load_plugin
(
struct
st_mysql
*mysql,
const
char
*
name
,
int
type
,
94
int
argc, ...);
95
112
struct
st_mysql_client_plugin
*
113
mysql_load_plugin_v
(
struct
st_mysql
*mysql,
const
char
*
name
,
int
type
,
114
int
argc, va_list args);
115
126
struct
st_mysql_client_plugin
*
127
mysql_client_find_plugin
(
struct
st_mysql
*mysql,
const
char
*
name
,
int
type
);
128
143
struct
st_mysql_client_plugin
*
144
mysql_client_register_plugin
(
struct
st_mysql
*mysql,
145
struct
st_mysql_client_plugin
*plugin);
146
159
int
mysql_plugin_options
(
struct
st_mysql_client_plugin
*plugin,
160
const
char
*
option
,
const
void
*value);
161
#endif
162
include
mysql
client_plugin.h
Generated on Sat Nov 9 2013 01:24:45 for MySQL 5.6.14 Source Code Document by
1.8.1.2