1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef DRIZZLED_PLUGIN_H
21
#define DRIZZLED_PLUGIN_H
23
#include "drizzled/module/manifest.h"
24
#include "drizzled/module/module.h"
25
#include "drizzled/plugin/version.h"
26
#include "drizzled/module/context.h"
27
#include "drizzled/definitions.h"
29
#include "drizzled/lex_string.h"
30
#include "drizzled/xid.h"
31
#include <boost/program_options.hpp>
1
/* Copyright (C) 2005 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
38
struct charset_info_st;
22
#define MYSQL_THD THD*
24
#define MYSQL_THD void*
30
/* This definition must match the one given in m_string.h */
31
struct st_mysql_lex_string
36
#endif /* _m_string_h */
37
typedef struct st_mysql_lex_string MYSQL_LEX_STRING;
39
#define MYSQL_XIDDATASIZE 128
41
struct st_mysql_xid is binary compatible with the XID structure as
42
in the X/Open CAE Specification, Distributed Transaction Processing:
43
The XA Specification, X/Open Company Ltd., 1991.
44
http://www.opengroup.org/bookstore/catalog/c193.htm
46
@see XID in sql/handler.h
52
char data[MYSQL_XIDDATASIZE]; /* Not \0-terminated */
54
typedef struct st_mysql_xid MYSQL_XID;
40
56
/*************************************************************************
41
57
Plugin API. Common for all plugin types.
46
typedef drizzle_lex_string LEX_STRING;
49
extern char *opt_plugin_dir_ptr;
50
extern char opt_plugin_dir[FN_REFLEN];
52
namespace plugin { class StorageEngine; }
55
Macros for beginning and ending plugin declarations. Between
56
DRIZZLE_DECLARE_PLUGIN and DRIZZLE_DECLARE_PLUGIN_END there should
57
be a module::Manifest for each plugin to be declared.
61
#define PANDORA_CPP_NAME(x) _drizzled_ ## x ## _plugin_
62
#define PANDORA_PLUGIN_NAME(x) PANDORA_CPP_NAME(x)
63
#define DRIZZLE_DECLARE_PLUGIN \
64
::drizzled::module::Manifest PANDORA_PLUGIN_NAME(PANDORA_MODULE_NAME)=
67
#define DRIZZLE_DECLARE_PLUGIN_END
68
#define DRIZZLE_PLUGIN(init,system,options) \
69
DRIZZLE_DECLARE_PLUGIN \
72
STRINGIFY_ARG(PANDORA_MODULE_NAME), \
73
STRINGIFY_ARG(PANDORA_MODULE_VERSION), \
74
STRINGIFY_ARG(PANDORA_MODULE_AUTHOR), \
75
STRINGIFY_ARG(PANDORA_MODULE_TITLE), \
76
PANDORA_MODULE_LICENSE, \
77
init, system, options \
60
#define MYSQL_PLUGIN_INTERFACE_VERSION 0x0100
63
The allowable types of plugins
65
#define MYSQL_UDF_PLUGIN 0 /* User-defined function */
66
#define MYSQL_STORAGE_ENGINE_PLUGIN 1 /* Storage Engine */
67
#define MYSQL_FTPARSER_PLUGIN 2 /* Full-text parser plugin */
68
#define MYSQL_DAEMON_PLUGIN 3 /* The daemon/raw plugin type */
69
#define MYSQL_INFORMATION_SCHEMA_PLUGIN 4 /* The I_S plugin type */
70
#define MYSQL_AUDIT_PLUGIN 5 /* The Audit plugin type */
71
#define MYSQL_MAX_PLUGIN_TYPE_NUM 6 /* The number of plugin types */
73
/* We use the following strings to define licenses for plugins */
74
#define PLUGIN_LICENSE_PROPRIETARY 0
75
#define PLUGIN_LICENSE_GPL 1
76
#define PLUGIN_LICENSE_BSD 2
78
#define PLUGIN_LICENSE_PROPRIETARY_STRING "PROPRIETARY"
79
#define PLUGIN_LICENSE_GPL_STRING "GPL"
80
#define PLUGIN_LICENSE_BSD_STRING "BSD"
83
Macros for beginning and ending plugin declarations. Between
84
mysql_declare_plugin and mysql_declare_plugin_end there should
85
be a st_mysql_plugin struct for each plugin to be declared.
89
#ifndef MYSQL_DYNAMIC_PLUGIN
90
#define __MYSQL_DECLARE_PLUGIN(NAME, VERSION, PSIZE, DECLS) \
91
int VERSION= MYSQL_PLUGIN_INTERFACE_VERSION; \
92
int PSIZE= sizeof(struct st_mysql_plugin); \
93
struct st_mysql_plugin DECLS[]= {
95
#define __MYSQL_DECLARE_PLUGIN(NAME, VERSION, PSIZE, DECLS) \
96
int _mysql_plugin_interface_version_= MYSQL_PLUGIN_INTERFACE_VERSION; \
97
int _mysql_sizeof_struct_st_plugin_= sizeof(struct st_mysql_plugin); \
98
struct st_mysql_plugin _mysql_plugin_declarations_[]= {
101
#define mysql_declare_plugin(NAME) \
102
__MYSQL_DECLARE_PLUGIN(NAME, \
103
builtin_ ## NAME ## _plugin_interface_version, \
104
builtin_ ## NAME ## _sizeof_struct_st_plugin, \
105
builtin_ ## NAME ## _plugin)
107
#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0,0,0,0,0}}
82
110
declarations for SHOW STATUS support in plugins
196
218
for thread variables, the value offset is the first
197
219
element after the header, the default value is the second.
201
#define DECLARE_DRIZZLE_SYSVAR_BASIC(name, type) struct { \
202
DRIZZLE_PLUGIN_VAR_HEADER; \
223
#define DECLARE_MYSQL_SYSVAR_BASIC(name, type) struct { \
224
MYSQL_PLUGIN_VAR_HEADER; \
204
226
const type def_val; \
205
} DRIZZLE_SYSVAR_NAME(name)
227
} MYSQL_SYSVAR_NAME(name)
207
#define DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, type) struct { \
208
DRIZZLE_PLUGIN_VAR_HEADER; \
229
#define DECLARE_MYSQL_SYSVAR_SIMPLE(name, type) struct { \
230
MYSQL_PLUGIN_VAR_HEADER; \
209
231
type *value; type def_val; \
210
232
type min_val; type max_val; \
212
} DRIZZLE_SYSVAR_NAME(name)
214
#define DECLARE_SessionVAR_FUNC(type) \
215
type *(*resolve)(Session *session, int offset)
217
#define DECLARE_DRIZZLE_SessionVAR_BASIC(name, type) struct { \
218
DRIZZLE_PLUGIN_VAR_HEADER; \
234
} MYSQL_SYSVAR_NAME(name)
236
#define DECLARE_MYSQL_SYSVAR_TYPELIB(name, type) struct { \
237
MYSQL_PLUGIN_VAR_HEADER; \
238
type *value; type def_val; \
240
} MYSQL_SYSVAR_NAME(name)
242
#define DECLARE_THDVAR_FUNC(type) \
243
type *(*resolve)(MYSQL_THD thd, int offset)
245
#define DECLARE_MYSQL_THDVAR_BASIC(name, type) struct { \
246
MYSQL_PLUGIN_VAR_HEADER; \
220
248
const type def_val; \
221
DECLARE_SessionVAR_FUNC(type); \
222
} DRIZZLE_SYSVAR_NAME(name)
249
DECLARE_THDVAR_FUNC(type); \
250
} MYSQL_SYSVAR_NAME(name)
224
#define DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, type) struct { \
225
DRIZZLE_PLUGIN_VAR_HEADER; \
252
#define DECLARE_MYSQL_THDVAR_SIMPLE(name, type) struct { \
253
MYSQL_PLUGIN_VAR_HEADER; \
227
255
type def_val; type min_val; \
228
256
type max_val; type blk_sz; \
229
DECLARE_SessionVAR_FUNC(type); \
230
} DRIZZLE_SYSVAR_NAME(name)
257
DECLARE_THDVAR_FUNC(type); \
258
} MYSQL_SYSVAR_NAME(name)
232
#define DECLARE_DRIZZLE_SessionVAR_TYPELIB(name, type) struct { \
233
DRIZZLE_PLUGIN_VAR_HEADER; \
260
#define DECLARE_MYSQL_THDVAR_TYPELIB(name, type) struct { \
261
MYSQL_PLUGIN_VAR_HEADER; \
236
DECLARE_SessionVAR_FUNC(type); \
264
DECLARE_THDVAR_FUNC(type); \
237
265
TYPELIB *typelib; \
238
} DRIZZLE_SYSVAR_NAME(name)
266
} MYSQL_SYSVAR_NAME(name)
242
270
the following declarations are for use by plugin implementors
245
#define DRIZZLE_SYSVAR_BOOL(name, varname, opt, comment, check, update, def) \
246
DECLARE_DRIZZLE_SYSVAR_BASIC(name, bool) = { \
273
#define MYSQL_SYSVAR_BOOL(name, varname, opt, comment, check, update, def) \
274
DECLARE_MYSQL_SYSVAR_BASIC(name, char) = { \
247
275
PLUGIN_VAR_BOOL | ((opt) & PLUGIN_VAR_MASK), \
248
276
#name, comment, check, update, &varname, def}
250
#define DRIZZLE_SYSVAR_STR(name, varname, opt, comment, check, update, def) \
251
DECLARE_DRIZZLE_SYSVAR_BASIC(name, char *) = { \
278
#define MYSQL_SYSVAR_STR(name, varname, opt, comment, check, update, def) \
279
DECLARE_MYSQL_SYSVAR_BASIC(name, char *) = { \
252
280
PLUGIN_VAR_STR | ((opt) & PLUGIN_VAR_MASK), \
253
281
#name, comment, check, update, &varname, def}
255
#define DRIZZLE_SYSVAR_INT(name, varname, opt, comment, check, update, def, min, max, blk) \
256
DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, int) = { \
283
#define MYSQL_SYSVAR_INT(name, varname, opt, comment, check, update, def, min, max, blk) \
284
DECLARE_MYSQL_SYSVAR_SIMPLE(name, int) = { \
257
285
PLUGIN_VAR_INT | ((opt) & PLUGIN_VAR_MASK), \
258
286
#name, comment, check, update, &varname, def, min, max, blk }
260
#define DRIZZLE_SYSVAR_UINT(name, varname, opt, comment, check, update, def, min, max, blk) \
261
DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, unsigned int) = { \
288
#define MYSQL_SYSVAR_UINT(name, varname, opt, comment, check, update, def, min, max, blk) \
289
DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned int) = { \
262
290
PLUGIN_VAR_INT | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
263
291
#name, comment, check, update, &varname, def, min, max, blk }
265
#define DRIZZLE_SYSVAR_LONG(name, varname, opt, comment, check, update, def, min, max, blk) \
266
DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, long) = { \
293
#define MYSQL_SYSVAR_LONG(name, varname, opt, comment, check, update, def, min, max, blk) \
294
DECLARE_MYSQL_SYSVAR_SIMPLE(name, long) = { \
267
295
PLUGIN_VAR_LONG | ((opt) & PLUGIN_VAR_MASK), \
268
296
#name, comment, check, update, &varname, def, min, max, blk }
270
#define DRIZZLE_SYSVAR_ULONG(name, varname, opt, comment, check, update, def, min, max, blk) \
271
DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, unsigned long) = { \
298
#define MYSQL_SYSVAR_ULONG(name, varname, opt, comment, check, update, def, min, max, blk) \
299
DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned long) = { \
272
300
PLUGIN_VAR_LONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
273
301
#name, comment, check, update, &varname, def, min, max, blk }
275
#define DRIZZLE_SYSVAR_LONGLONG(name, varname, opt, comment, check, update, def, min, max, blk) \
276
DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, int64_t) = { \
303
#define MYSQL_SYSVAR_LONGLONG(name, varname, opt, comment, check, update, def, min, max, blk) \
304
DECLARE_MYSQL_SYSVAR_SIMPLE(name, int64_t) = { \
277
305
PLUGIN_VAR_LONGLONG | ((opt) & PLUGIN_VAR_MASK), \
278
306
#name, comment, check, update, &varname, def, min, max, blk }
280
#define DRIZZLE_SYSVAR_ULONGLONG(name, varname, opt, comment, check, update, def, min, max, blk) \
281
DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, uint64_t) = { \
308
#define MYSQL_SYSVAR_ULONGLONG(name, varname, opt, comment, check, update, def, min, max, blk) \
309
DECLARE_MYSQL_SYSVAR_SIMPLE(name, uint64_t) = { \
282
310
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
283
311
#name, comment, check, update, &varname, def, min, max, blk }
285
#define DRIZZLE_SessionVAR_BOOL(name, opt, comment, check, update, def) \
286
DECLARE_DRIZZLE_SessionVAR_BASIC(name, char) = { \
287
PLUGIN_VAR_BOOL | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
288
#name, comment, check, update, -1, def, NULL}
290
#define DRIZZLE_SessionVAR_STR(name, opt, comment, check, update, def) \
291
DECLARE_DRIZZLE_SessionVAR_BASIC(name, char *) = { \
292
PLUGIN_VAR_STR | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
293
#name, comment, check, update, -1, def, NULL}
295
#define DRIZZLE_SessionVAR_INT(name, opt, comment, check, update, def, min, max, blk) \
296
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, int) = { \
297
PLUGIN_VAR_INT | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
298
#name, comment, check, update, -1, def, min, max, blk, NULL }
300
#define DRIZZLE_SessionVAR_UINT(name, opt, comment, check, update, def, min, max, blk) \
301
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, unsigned int) = { \
302
PLUGIN_VAR_INT | PLUGIN_VAR_SessionLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
303
#name, comment, check, update, -1, def, min, max, blk, NULL }
305
#define DRIZZLE_SessionVAR_LONG(name, opt, comment, check, update, def, min, max, blk) \
306
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, long) = { \
307
PLUGIN_VAR_LONG | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
308
#name, comment, check, update, -1, def, min, max, blk, NULL }
310
#define DRIZZLE_SessionVAR_ULONG(name, opt, comment, check, update, def, min, max, blk) \
311
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, unsigned long) = { \
312
PLUGIN_VAR_LONG | PLUGIN_VAR_SessionLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
313
#name, comment, check, update, -1, def, min, max, blk, NULL }
315
#define DRIZZLE_SessionVAR_LONGLONG(name, opt, comment, check, update, def, min, max, blk) \
316
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, int64_t) = { \
317
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
318
#name, comment, check, update, -1, def, min, max, blk, NULL }
320
#define DRIZZLE_SessionVAR_ULONGLONG(name, opt, comment, check, update, def, min, max, blk) \
321
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, uint64_t) = { \
322
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_SessionLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
323
#name, comment, check, update, -1, def, min, max, blk, NULL }
313
#define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \
314
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned long) = { \
315
PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \
316
#name, comment, check, update, &varname, def, typelib }
318
#define MYSQL_SYSVAR_SET(name, varname, opt, comment, check, update, def, typelib) \
319
DECLARE_MYSQL_SYSVAR_TYPELIB(name, uint64_t) = { \
320
PLUGIN_VAR_SET | ((opt) & PLUGIN_VAR_MASK), \
321
#name, comment, check, update, &varname, def, typelib }
323
#define MYSQL_THDVAR_BOOL(name, opt, comment, check, update, def) \
324
DECLARE_MYSQL_THDVAR_BASIC(name, char) = { \
325
PLUGIN_VAR_BOOL | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
326
#name, comment, check, update, -1, def, NULL}
328
#define MYSQL_THDVAR_STR(name, opt, comment, check, update, def) \
329
DECLARE_MYSQL_THDVAR_BASIC(name, char *) = { \
330
PLUGIN_VAR_STR | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
331
#name, comment, check, update, -1, def, NULL}
333
#define MYSQL_THDVAR_INT(name, opt, comment, check, update, def, min, max, blk) \
334
DECLARE_MYSQL_THDVAR_SIMPLE(name, int) = { \
335
PLUGIN_VAR_INT | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
336
#name, comment, check, update, -1, def, min, max, blk, NULL }
338
#define MYSQL_THDVAR_UINT(name, opt, comment, check, update, def, min, max, blk) \
339
DECLARE_MYSQL_THDVAR_SIMPLE(name, unsigned int) = { \
340
PLUGIN_VAR_INT | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
341
#name, comment, check, update, -1, def, min, max, blk, NULL }
343
#define MYSQL_THDVAR_LONG(name, opt, comment, check, update, def, min, max, blk) \
344
DECLARE_MYSQL_THDVAR_SIMPLE(name, long) = { \
345
PLUGIN_VAR_LONG | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
346
#name, comment, check, update, -1, def, min, max, blk, NULL }
348
#define MYSQL_THDVAR_ULONG(name, opt, comment, check, update, def, min, max, blk) \
349
DECLARE_MYSQL_THDVAR_SIMPLE(name, unsigned long) = { \
350
PLUGIN_VAR_LONG | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
351
#name, comment, check, update, -1, def, min, max, blk, NULL }
353
#define MYSQL_THDVAR_LONGLONG(name, opt, comment, check, update, def, min, max, blk) \
354
DECLARE_MYSQL_THDVAR_SIMPLE(name, int64_t) = { \
355
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
356
#name, comment, check, update, -1, def, min, max, blk, NULL }
358
#define MYSQL_THDVAR_ULONGLONG(name, opt, comment, check, update, def, min, max, blk) \
359
DECLARE_MYSQL_THDVAR_SIMPLE(name, uint64_t) = { \
360
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
361
#name, comment, check, update, -1, def, min, max, blk, NULL }
363
#define MYSQL_THDVAR_ENUM(name, opt, comment, check, update, def, typelib) \
364
DECLARE_MYSQL_THDVAR_TYPELIB(name, unsigned long) = { \
365
PLUGIN_VAR_ENUM | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
366
#name, comment, check, update, -1, def, NULL, typelib }
368
#define MYSQL_THDVAR_SET(name, opt, comment, check, update, def, typelib) \
369
DECLARE_MYSQL_THDVAR_TYPELIB(name, uint64_t) = { \
370
PLUGIN_VAR_SET | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
371
#name, comment, check, update, -1, def, NULL, typelib }
325
373
/* accessor macros */
327
375
#define SYSVAR(name) \
328
(*(DRIZZLE_SYSVAR_NAME(name).value))
330
/* when session == null, result points to global value */
331
#define SessionVAR(session, name) \
332
(*(DRIZZLE_SYSVAR_NAME(name).resolve(session, DRIZZLE_SYSVAR_NAME(name).offset)))
335
/*************************************************************************
336
drizzle_value struct for reading values from mysqld.
376
(*(MYSQL_SYSVAR_NAME(name).value))
378
/* when thd == null, result points to global value */
379
#define THDVAR(thd, name) \
380
(*(MYSQL_SYSVAR_NAME(name).resolve(thd, MYSQL_SYSVAR_NAME(name).offset)))
384
Plugin description structure.
387
struct st_mysql_plugin
389
int type; /* the plugin type (a MYSQL_XXX_PLUGIN value) */
390
void *info; /* pointer to type-specific plugin descriptor */
391
const char *name; /* plugin name */
392
const char *author; /* plugin author (for SHOW PLUGINS) */
393
const char *descr; /* general descriptive text (for SHOW PLUGINS ) */
394
int license; /* the plugin license (PLUGIN_LICENSE_XXX) */
395
int (*init)(void *); /* the function to invoke when plugin is loaded */
396
int (*deinit)(void *);/* the function to invoke when plugin is unloaded */
397
unsigned int version; /* plugin version (for SHOW PLUGINS) */
398
struct st_mysql_show_var *status_vars;
399
struct st_mysql_sys_var **system_vars;
400
void * __reserved1; /* reserved for dependency checking */
403
/*************************************************************************
404
API for Full-text parser plugin. (MYSQL_FTPARSER_PLUGIN)
406
#include "plugin_ftparser.h"
408
/*************************************************************************
409
API for Storage Engine plugin. (MYSQL_DAEMON_PLUGIN)
412
/* handlertons of different MySQL releases are incompatible */
413
#define MYSQL_DAEMON_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
416
Here we define only the descriptor structure, that is referred from
420
struct st_mysql_daemon
422
int interface_version;
426
/*************************************************************************
427
API for I_S plugin. (MYSQL_INFORMATION_SCHEMA_PLUGIN)
430
/* handlertons of different MySQL releases are incompatible */
431
#define MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
434
Here we define only the descriptor structure, that is referred from
438
struct st_mysql_information_schema
440
int interface_version;
444
/*************************************************************************
445
API for Storage Engine plugin. (MYSQL_STORAGE_ENGINE_PLUGIN)
448
/* handlertons of different MySQL releases are incompatible */
449
#define MYSQL_HANDLERTON_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
452
The real API is in the sql/handler.h
453
Here we define only the descriptor structure, that is referred from
457
struct st_mysql_storage_engine
459
int interface_version;
465
/*************************************************************************
466
st_mysql_value struct for reading values from mysqld.
337
467
Used by server variables framework to parse user-provided values.
338
468
Will be used for arguments when implementing UDFs.