add 2 placeholder values for config and system variables.

parent 7ae3682d
...@@ -60,7 +60,7 @@ __MYSQL_DECLARE_PLUGIN(NAME, \ ...@@ -60,7 +60,7 @@ __MYSQL_DECLARE_PLUGIN(NAME, \
builtin_ ## NAME ## _sizeof_struct_st_plugin, \ builtin_ ## NAME ## _sizeof_struct_st_plugin, \
builtin_ ## NAME ## _plugin) builtin_ ## NAME ## _plugin)
#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0,0}} #define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0,0,0,0}}
/* /*
declarations for SHOW STATUS support in plugins declarations for SHOW STATUS support in plugins
...@@ -96,6 +96,8 @@ struct st_mysql_plugin ...@@ -96,6 +96,8 @@ struct st_mysql_plugin
int (*deinit)(void); /* the function to invoke when plugin is unloaded */ int (*deinit)(void); /* the function to invoke when plugin is unloaded */
unsigned int version; /* plugin version (for SHOW PLUGINS) */ unsigned int version; /* plugin version (for SHOW PLUGINS) */
struct st_mysql_show_var *status_vars; struct st_mysql_show_var *status_vars;
void * __reserved1; /* placeholder for system variables */
void * __reserved2; /* placeholder for config options */
}; };
/************************************************************************* /*************************************************************************
......
...@@ -225,7 +225,9 @@ mysql_declare_plugin(ftexample) ...@@ -225,7 +225,9 @@ mysql_declare_plugin(ftexample)
simple_parser_plugin_init, /* init function (when loaded) */ simple_parser_plugin_init, /* init function (when loaded) */
simple_parser_plugin_deinit,/* deinit function (when unloaded) */ simple_parser_plugin_deinit,/* deinit function (when unloaded) */
0x0001, /* version */ 0x0001, /* version */
simple_status /* status variables */ simple_status, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -7623,7 +7623,9 @@ mysql_declare_plugin(innobase) ...@@ -7623,7 +7623,9 @@ mysql_declare_plugin(innobase)
innobase_init, /* Plugin Init */ innobase_init, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
innodb_status_variables_export innodb_status_variables_export,/* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -10598,7 +10598,9 @@ mysql_declare_plugin(ndbcluster) ...@@ -10598,7 +10598,9 @@ mysql_declare_plugin(ndbcluster)
ndbcluster_init, /* Plugin Init */ ndbcluster_init, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
ndb_status_variables_export ndb_status_variables_export,/* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
......
...@@ -5598,7 +5598,9 @@ mysql_declare_plugin(partition) ...@@ -5598,7 +5598,9 @@ mysql_declare_plugin(partition)
partition_initialize, /* Plugin Init */ partition_initialize, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100, /* 1.0 */ 0x0100, /* 1.0 */
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
......
...@@ -4678,6 +4678,8 @@ mysql_declare_plugin(binlog) ...@@ -4678,6 +4678,8 @@ mysql_declare_plugin(binlog)
binlog_init, /* Plugin Init */ binlog_init, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -1583,7 +1583,9 @@ mysql_declare_plugin(archive) ...@@ -1583,7 +1583,9 @@ mysql_declare_plugin(archive)
archive_db_init, /* Plugin Init */ archive_db_init, /* Plugin Init */
archive_db_done, /* Plugin Deinit */ archive_db_done, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -223,6 +223,8 @@ mysql_declare_plugin(blackhole) ...@@ -223,6 +223,8 @@ mysql_declare_plugin(blackhole)
blackhole_init, /* Plugin Init */ blackhole_init, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -1529,7 +1529,9 @@ mysql_declare_plugin(csv) ...@@ -1529,7 +1529,9 @@ mysql_declare_plugin(csv)
tina_init_func, /* Plugin Init */ tina_init_func, /* Plugin Init */
tina_done_func, /* Plugin Deinit */ tina_done_func, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -715,7 +715,9 @@ mysql_declare_plugin(example) ...@@ -715,7 +715,9 @@ mysql_declare_plugin(example)
example_init_func, /* Plugin Init */ example_init_func, /* Plugin Init */
example_done_func, /* Plugin Deinit */ example_done_func, /* Plugin Deinit */
0x0001 /* 0.1 */, 0x0001 /* 0.1 */,
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -2896,7 +2896,9 @@ mysql_declare_plugin(federated) ...@@ -2896,7 +2896,9 @@ mysql_declare_plugin(federated)
federated_db_init, /* Plugin Init */ federated_db_init, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100 /* 1.0 */, 0x0100 /* 1.0 */,
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -708,6 +708,8 @@ mysql_declare_plugin(heap) ...@@ -708,6 +708,8 @@ mysql_declare_plugin(heap)
heap_init, heap_init,
NULL, NULL,
0x0100, /* 1.0 */ 0x0100, /* 1.0 */
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -1800,7 +1800,9 @@ mysql_declare_plugin(myisam) ...@@ -1800,7 +1800,9 @@ mysql_declare_plugin(myisam)
myisam_init, /* Plugin Init */ myisam_init, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100, /* 1.0 */ 0x0100, /* 1.0 */
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
...@@ -573,6 +573,8 @@ mysql_declare_plugin(myisammrg) ...@@ -573,6 +573,8 @@ mysql_declare_plugin(myisammrg)
myisammrg_init, /* Plugin Init */ myisammrg_init, /* Plugin Init */
NULL, /* Plugin Deinit */ NULL, /* Plugin Deinit */
0x0100, /* 1.0 */ 0x0100, /* 1.0 */
0 NULL, /* status variables */
NULL, /* system variables */
NULL /* config options */
} }
mysql_declare_plugin_end; mysql_declare_plugin_end;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment