@@ -71,7 +71,7 @@ typedef struct st_mysql_xid MYSQL_XID;
7171 Plugin API. Common for all plugin types.
7272*/
7373
74- #define MYSQL_PLUGIN_INTERFACE_VERSION 0x0102
74+ #define MYSQL_PLUGIN_INTERFACE_VERSION 0x0103
7575
7676/*
7777 The allowable types of plugins
@@ -120,7 +120,7 @@ __MYSQL_DECLARE_PLUGIN(NAME, \
120120 builtin_ ## NAME ## _sizeof_struct_st_plugin, \
121121 builtin_ ## NAME ## _plugin)
122122
123- #define mysql_declare_plugin_end ,{0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 }}
123+ #define mysql_declare_plugin_end ,{0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 , 0 }}
124124
125125/*
126126 declarations for SHOW STATUS support in plugins
@@ -143,6 +143,14 @@ struct st_mysql_show_var {
143143typedef int (*mysql_show_var_func)(MYSQL_THD, struct st_mysql_show_var *, char *);
144144
145145
146+ /*
147+ Constants for plugin flags.
148+ */
149+
150+ #define PLUGIN_OPT_NO_INSTALL 1UL /* Not dynamically loadable */
151+ #define PLUGIN_OPT_NO_UNINSTALL 2UL /* Not dynamically unloadable */
152+
153+
146154/*
147155 declarations for server variables and command line options
148156*/
@@ -415,6 +423,7 @@ struct st_mysql_plugin
415423 struct st_mysql_show_var *status_vars;
416424 struct st_mysql_sys_var **system_vars;
417425 void * __reserved1; /* reserved for dependency checking */
426+ unsigned long flags; /* flags for plugin */
418427};
419428
420429/* ************************************************************************
0 commit comments