24#ifndef SQL_PLUGIN_REF_INCLUDED
25#define SQL_PLUGIN_REF_INCLUDED
70 return static_cast<T
>(
ref->data);
75 return ref->load_option;
86 return ref[0]->plugin;
89 return ref[0]->plugin_dl;
93 return static_cast<T
>(
ref[0]->data);
98 return ref[0]->load_option;
101 return ref1 && ref2 && (ref1[0] == ref2[0]);
Plugin array helper class.
Definition: sql_plugin_ref.h:110
Plugin_array(PSI_memory_key psi_key)
Class construction.
Definition: sql_plugin_ref.h:117
bool exists(plugin_ref plugin)
Check, whether the plugin specified by the plugin argument has been already added into the array.
Definition: sql_plugin_ref.h:129
A typesafe replacement for DYNAMIC_ARRAY.
Definition: prealloced_array.h:71
iterator begin()
begin : Returns a pointer to the first element in the array.
Definition: prealloced_array.h:254
iterator end()
Definition: prealloced_array.h:255
A class representing one system variable - that is something that can be accessed as @global....
Definition: set_var.h:106
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:49
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
PT & ref(PT *tp)
Definition: tablespace_impl.cc:359
uint plugin_state(st_plugin_int **ref)
Definition: sql_plugin_ref.h:96
enum_plugin_load_option plugin_load_option(st_plugin_int **ref)
Definition: sql_plugin_ref.h:97
struct st_plugin_int ** plugin_ref
Definition: sql_plugin_ref.h:83
st_mysql_plugin * plugin_decl(st_plugin_int **ref)
Definition: sql_plugin_ref.h:85
T plugin_data(st_plugin_int **ref)
Definition: sql_plugin_ref.h:92
st_plugin_dl * plugin_dlib(st_plugin_int **ref)
Definition: sql_plugin_ref.h:88
LEX_CSTRING * plugin_name(st_plugin_int **ref)
Definition: sql_plugin_ref.h:95
enum_plugin_load_option
Definition: sql_plugin_ref.h:36
@ PLUGIN_OFF
Definition: sql_plugin_ref.h:37
@ PLUGIN_FORCE_PLUS_PERMANENT
Definition: sql_plugin_ref.h:40
@ PLUGIN_FORCE
Definition: sql_plugin_ref.h:39
@ PLUGIN_ON
Definition: sql_plugin_ref.h:38
bool plugin_equals(st_plugin_int **ref1, st_plugin_int **ref2)
Definition: sql_plugin_ref.h:100
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: mysql_lex_string.h:40
Definition: sql_plugin.h:85
Definition: sql_plugin_ref.h:45
uint state
Definition: sql_plugin_ref.h:49
MEM_ROOT mem_root
Definition: sql_plugin_ref.h:52
uint ref_count
Definition: sql_plugin_ref.h:50
void * data
Definition: sql_plugin_ref.h:51
sys_var * system_vars
Definition: sql_plugin_ref.h:53
enum_plugin_load_option load_option
Definition: sql_plugin_ref.h:54
st_mysql_plugin * plugin
Definition: sql_plugin_ref.h:47
st_plugin_dl * plugin_dl
Definition: sql_plugin_ref.h:48
LEX_CSTRING name
Definition: sql_plugin_ref.h:46