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
221
for thread variables, the value offset is the first
197
222
element after the header, the default value is the second.
201
#define DECLARE_DRIZZLE_SYSVAR_BASIC(name, type) struct { \
202
DRIZZLE_PLUGIN_VAR_HEADER; \
226
#define DECLARE_MYSQL_SYSVAR_BASIC(name, type) struct { \
227
MYSQL_PLUGIN_VAR_HEADER; \
204
229
const type def_val; \
205
} DRIZZLE_SYSVAR_NAME(name)
230
} MYSQL_SYSVAR_NAME(name)
207
#define DECLARE_DRIZZLE_SYSVAR_SIMPLE(name, type) struct { \
208
DRIZZLE_PLUGIN_VAR_HEADER; \
232
#define DECLARE_MYSQL_SYSVAR_SIMPLE(name, type) struct { \
233
MYSQL_PLUGIN_VAR_HEADER; \
209
234
type *value; type def_val; \
210
235
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; \
237
} MYSQL_SYSVAR_NAME(name)
239
#define DECLARE_MYSQL_SYSVAR_TYPELIB(name, type) struct { \
240
MYSQL_PLUGIN_VAR_HEADER; \
241
type *value; type def_val; \
243
} MYSQL_SYSVAR_NAME(name)
245
#define DECLARE_THDVAR_FUNC(type) \
246
type *(*resolve)(MYSQL_THD thd, int offset)
248
#define DECLARE_MYSQL_THDVAR_BASIC(name, type) struct { \
249
MYSQL_PLUGIN_VAR_HEADER; \
220
251
const type def_val; \
221
DECLARE_SessionVAR_FUNC(type); \
222
} DRIZZLE_SYSVAR_NAME(name)
252
DECLARE_THDVAR_FUNC(type); \
253
} MYSQL_SYSVAR_NAME(name)
224
#define DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, type) struct { \
225
DRIZZLE_PLUGIN_VAR_HEADER; \
255
#define DECLARE_MYSQL_THDVAR_SIMPLE(name, type) struct { \
256
MYSQL_PLUGIN_VAR_HEADER; \
227
258
type def_val; type min_val; \
228
259
type max_val; type blk_sz; \
229
DECLARE_SessionVAR_FUNC(type); \
230
} DRIZZLE_SYSVAR_NAME(name)
260
DECLARE_THDVAR_FUNC(type); \
261
} MYSQL_SYSVAR_NAME(name)
232
#define DECLARE_DRIZZLE_SessionVAR_TYPELIB(name, type) struct { \
233
DRIZZLE_PLUGIN_VAR_HEADER; \
263
#define DECLARE_MYSQL_THDVAR_TYPELIB(name, type) struct { \
264
MYSQL_PLUGIN_VAR_HEADER; \
236
DECLARE_SessionVAR_FUNC(type); \
267
DECLARE_THDVAR_FUNC(type); \
237
268
TYPELIB *typelib; \
238
} DRIZZLE_SYSVAR_NAME(name)
269
} MYSQL_SYSVAR_NAME(name)
242
273
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) = { \
276
#define MYSQL_SYSVAR_BOOL(name, varname, opt, comment, check, update, def) \
277
DECLARE_MYSQL_SYSVAR_BASIC(name, char) = { \
247
278
PLUGIN_VAR_BOOL | ((opt) & PLUGIN_VAR_MASK), \
248
279
#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 *) = { \
281
#define MYSQL_SYSVAR_STR(name, varname, opt, comment, check, update, def) \
282
DECLARE_MYSQL_SYSVAR_BASIC(name, char *) = { \
252
283
PLUGIN_VAR_STR | ((opt) & PLUGIN_VAR_MASK), \
253
284
#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) = { \
286
#define MYSQL_SYSVAR_INT(name, varname, opt, comment, check, update, def, min, max, blk) \
287
DECLARE_MYSQL_SYSVAR_SIMPLE(name, int) = { \
257
288
PLUGIN_VAR_INT | ((opt) & PLUGIN_VAR_MASK), \
258
289
#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) = { \
291
#define MYSQL_SYSVAR_UINT(name, varname, opt, comment, check, update, def, min, max, blk) \
292
DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned int) = { \
262
293
PLUGIN_VAR_INT | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
263
294
#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) = { \
296
#define MYSQL_SYSVAR_LONG(name, varname, opt, comment, check, update, def, min, max, blk) \
297
DECLARE_MYSQL_SYSVAR_SIMPLE(name, long) = { \
267
298
PLUGIN_VAR_LONG | ((opt) & PLUGIN_VAR_MASK), \
268
299
#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) = { \
301
#define MYSQL_SYSVAR_ULONG(name, varname, opt, comment, check, update, def, min, max, blk) \
302
DECLARE_MYSQL_SYSVAR_SIMPLE(name, unsigned long) = { \
272
303
PLUGIN_VAR_LONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
273
304
#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) = { \
306
#define MYSQL_SYSVAR_LONGLONG(name, varname, opt, comment, check, update, def, min, max, blk) \
307
DECLARE_MYSQL_SYSVAR_SIMPLE(name, int64_t) = { \
277
308
PLUGIN_VAR_LONGLONG | ((opt) & PLUGIN_VAR_MASK), \
278
309
#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) = { \
311
#define MYSQL_SYSVAR_ULONGLONG(name, varname, opt, comment, check, update, def, min, max, blk) \
312
DECLARE_MYSQL_SYSVAR_SIMPLE(name, uint64_t) = { \
282
313
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
283
314
#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 }
316
#define MYSQL_SYSVAR_ENUM(name, varname, opt, comment, check, update, def, typelib) \
317
DECLARE_MYSQL_SYSVAR_TYPELIB(name, unsigned long) = { \
318
PLUGIN_VAR_ENUM | ((opt) & PLUGIN_VAR_MASK), \
319
#name, comment, check, update, &varname, def, typelib }
321
#define MYSQL_SYSVAR_SET(name, varname, opt, comment, check, update, def, typelib) \
322
DECLARE_MYSQL_SYSVAR_TYPELIB(name, uint64_t) = { \
323
PLUGIN_VAR_SET | ((opt) & PLUGIN_VAR_MASK), \
324
#name, comment, check, update, &varname, def, typelib }
326
#define MYSQL_THDVAR_BOOL(name, opt, comment, check, update, def) \
327
DECLARE_MYSQL_THDVAR_BASIC(name, char) = { \
328
PLUGIN_VAR_BOOL | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
329
#name, comment, check, update, -1, def, NULL}
331
#define MYSQL_THDVAR_STR(name, opt, comment, check, update, def) \
332
DECLARE_MYSQL_THDVAR_BASIC(name, char *) = { \
333
PLUGIN_VAR_STR | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
334
#name, comment, check, update, -1, def, NULL}
336
#define MYSQL_THDVAR_INT(name, opt, comment, check, update, def, min, max, blk) \
337
DECLARE_MYSQL_THDVAR_SIMPLE(name, int) = { \
338
PLUGIN_VAR_INT | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
339
#name, comment, check, update, -1, def, min, max, blk, NULL }
341
#define MYSQL_THDVAR_UINT(name, opt, comment, check, update, def, min, max, blk) \
342
DECLARE_MYSQL_THDVAR_SIMPLE(name, unsigned int) = { \
343
PLUGIN_VAR_INT | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
344
#name, comment, check, update, -1, def, min, max, blk, NULL }
346
#define MYSQL_THDVAR_LONG(name, opt, comment, check, update, def, min, max, blk) \
347
DECLARE_MYSQL_THDVAR_SIMPLE(name, long) = { \
348
PLUGIN_VAR_LONG | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
349
#name, comment, check, update, -1, def, min, max, blk, NULL }
351
#define MYSQL_THDVAR_ULONG(name, opt, comment, check, update, def, min, max, blk) \
352
DECLARE_MYSQL_THDVAR_SIMPLE(name, unsigned long) = { \
353
PLUGIN_VAR_LONG | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
354
#name, comment, check, update, -1, def, min, max, blk, NULL }
356
#define MYSQL_THDVAR_LONGLONG(name, opt, comment, check, update, def, min, max, blk) \
357
DECLARE_MYSQL_THDVAR_SIMPLE(name, int64_t) = { \
358
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
359
#name, comment, check, update, -1, def, min, max, blk, NULL }
361
#define MYSQL_THDVAR_ULONGLONG(name, opt, comment, check, update, def, min, max, blk) \
362
DECLARE_MYSQL_THDVAR_SIMPLE(name, uint64_t) = { \
363
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
364
#name, comment, check, update, -1, def, min, max, blk, NULL }
366
#define MYSQL_THDVAR_ENUM(name, opt, comment, check, update, def, typelib) \
367
DECLARE_MYSQL_THDVAR_TYPELIB(name, unsigned long) = { \
368
PLUGIN_VAR_ENUM | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
369
#name, comment, check, update, -1, def, NULL, typelib }
371
#define MYSQL_THDVAR_SET(name, opt, comment, check, update, def, typelib) \
372
DECLARE_MYSQL_THDVAR_TYPELIB(name, uint64_t) = { \
373
PLUGIN_VAR_SET | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
374
#name, comment, check, update, -1, def, NULL, typelib }
325
376
/* accessor macros */
327
378
#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.
379
(*(MYSQL_SYSVAR_NAME(name).value))
381
/* when thd == null, result points to global value */
382
#define THDVAR(thd, name) \
383
(*(MYSQL_SYSVAR_NAME(name).resolve(thd, MYSQL_SYSVAR_NAME(name).offset)))
387
Plugin description structure.
390
struct st_mysql_plugin
392
int type; /* the plugin type (a MYSQL_XXX_PLUGIN value) */
393
void *info; /* pointer to type-specific plugin descriptor */
394
const char *name; /* plugin name */
395
const char *author; /* plugin author (for SHOW PLUGINS) */
396
const char *descr; /* general descriptive text (for SHOW PLUGINS ) */
397
int license; /* the plugin license (PLUGIN_LICENSE_XXX) */
398
int (*init)(void *); /* the function to invoke when plugin is loaded */
399
int (*deinit)(void *);/* the function to invoke when plugin is unloaded */
400
unsigned int version; /* plugin version (for SHOW PLUGINS) */
401
struct st_mysql_show_var *status_vars;
402
struct st_mysql_sys_var **system_vars;
403
void * __reserved1; /* reserved for dependency checking */
406
/*************************************************************************
407
API for Full-text parser plugin. (MYSQL_FTPARSER_PLUGIN)
409
#include "plugin_ftparser.h"
411
/*************************************************************************
412
API for Storage Engine plugin. (MYSQL_DAEMON_PLUGIN)
415
/* handlertons of different MySQL releases are incompatible */
416
#define MYSQL_DAEMON_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
419
Here we define only the descriptor structure, that is referred from
423
struct st_mysql_daemon
425
int interface_version;
429
/*************************************************************************
430
API for I_S plugin. (MYSQL_INFORMATION_SCHEMA_PLUGIN)
433
/* handlertons of different MySQL releases are incompatible */
434
#define MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
437
Here we define only the descriptor structure, that is referred from
441
struct st_mysql_information_schema
443
int interface_version;
447
/*************************************************************************
448
API for Storage Engine plugin. (MYSQL_STORAGE_ENGINE_PLUGIN)
451
/* handlertons of different MySQL releases are incompatible */
452
#define MYSQL_HANDLERTON_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
455
The real API is in the sql/handler.h
456
Here we define only the descriptor structure, that is referred from
460
struct st_mysql_storage_engine
462
int interface_version;
468
/*************************************************************************
469
st_mysql_value struct for reading values from mysqld.
337
470
Used by server variables framework to parse user-provided values.
338
471
Will be used for arguments when implementing UDFs.