diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-06-15 19:09:47 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-06-15 19:09:47 +0200 |
commit | 8bc6aed49186b1f6020ecea29a9b0def5803d370 (patch) | |
tree | c92e63f753d62d928184a84455c480a6fa96c07f /sql/handler.h | |
parent | 935817e985d15ce0d4f339ee7006ee891df11489 (diff) | |
download | mariadb-git-8bc6aed49186b1f6020ecea29a9b0def5803d370.tar.gz |
plugin_hton helper
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index bfc83a52582..5232900a293 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1210,6 +1210,11 @@ static inline LEX_STRING *hton_name(const handlerton *hton) return &(hton2plugin[hton->slot]->name); } +static inline handlerton *plugin_hton(plugin_ref plugin) +{ + return plugin_data(plugin, handlerton *); +} + static inline sys_var *find_hton_sysvar(handlerton *hton, st_mysql_sys_var *var) { return find_plugin_sysvar(hton2plugin[hton->slot], var); |