diff options
author | Sergei Golubchik <serg@mariadb.org> | 2014-11-28 18:38:09 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2014-11-29 20:22:00 +0100 |
commit | 6293c6936bd8aa14c62e474dab11249083bad2da (patch) | |
tree | 7c8893cd71544e1f38ddf80ab73a4907db68ad84 /include/mysql/plugin_auth.h.pp | |
parent | 612c9964d35830fd54b0b1ec7893f886c393b9cb (diff) | |
download | mariadb-git-MDEV-thd-specifics.tar.gz |
thd_specifics serviceMDEV-thd-specifics
Diffstat (limited to 'include/mysql/plugin_auth.h.pp')
-rw-r--r-- | include/mysql/plugin_auth.h.pp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mysql/plugin_auth.h.pp b/include/mysql/plugin_auth.h.pp index fefbb06ab8c..f35d82648b6 100644 --- a/include/mysql/plugin_auth.h.pp +++ b/include/mysql/plugin_auth.h.pp @@ -185,6 +185,18 @@ void thd_inc_error_row(void* thd); char *thd_get_error_context_description(void* thd, char *buffer, unsigned int length, unsigned int max_query_length); +#include <mysql/service_thd_specifics.h> +typedef int MYSQL_THD_KEY_T; +extern struct thd_specifics_service_st { + int (*thd_key_create_func)(MYSQL_THD_KEY_T *key); + void (*thd_key_delete_func)(MYSQL_THD_KEY_T *key); + void *(*thd_getspecific_func)(void* thd, MYSQL_THD_KEY_T key); + int (*thd_setspecific_func)(void* thd, MYSQL_THD_KEY_T key, void *value); +} *thd_specifics_service; +int thd_key_create(MYSQL_THD_KEY_T *key); +void thd_key_delete(MYSQL_THD_KEY_T *key); +void* thd_getspecific(void* thd, MYSQL_THD_KEY_T key); +int thd_setspecific(void* thd, MYSQL_THD_KEY_T key, void *value); struct st_mysql_xid { long formatID; long gtrid_length; |