diff options
author | acurtis@xiphis.org <> | 2005-12-21 10:18:40 -0800 |
---|---|---|
committer | acurtis@xiphis.org <> | 2005-12-21 10:18:40 -0800 |
commit | 13a776778c151ec520a1f1f5694aac6efaec3f04 (patch) | |
tree | d777ca5871199d389af93e8cbe06e1bdbc16a10b /sql/sql_plugin.h | |
parent | 053884596309fc33ffa40df1b8982e75705ec3e9 (diff) | |
download | mariadb-git-13a776778c151ec520a1f1f5694aac6efaec3f04.tar.gz |
Finalize storage engine plugins
Give BerkeleyDB savepoints
Remove "enum db_type" from most of the code
Diffstat (limited to 'sql/sql_plugin.h')
-rw-r--r-- | sql/sql_plugin.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/sql_plugin.h b/sql/sql_plugin.h index 8fb186b62de..24ba02367f5 100644 --- a/sql/sql_plugin.h +++ b/sql/sql_plugin.h @@ -53,11 +53,20 @@ struct st_plugin_int extern char *opt_plugin_dir_ptr; extern char opt_plugin_dir[FN_REFLEN]; -extern void plugin_init(void); +extern int plugin_init(void); +extern void plugin_load(void); extern void plugin_free(void); extern my_bool plugin_is_ready(LEX_STRING *name, int type); extern st_plugin_int *plugin_lock(LEX_STRING *name, int type); extern void plugin_unlock(struct st_plugin_int *plugin); extern my_bool mysql_install_plugin(THD *thd, LEX_STRING *name, LEX_STRING *dl); extern my_bool mysql_uninstall_plugin(THD *thd, LEX_STRING *name); + +extern my_bool plugin_register_builtin(struct st_mysql_plugin *plugin); + +typedef my_bool (plugin_foreach_func)(THD *thd, + st_plugin_int *plugin, + void *arg); +extern my_bool plugin_foreach(THD *thd, plugin_foreach_func *func, + int type, void *arg); #endif |