summaryrefslogtreecommitdiff
path: root/include/mysql/plugin_auth.h.pp
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-11-28 18:38:09 +0100
committerSergei Golubchik <serg@mariadb.org>2014-11-29 20:22:00 +0100
commit6293c6936bd8aa14c62e474dab11249083bad2da (patch)
tree7c8893cd71544e1f38ddf80ab73a4907db68ad84 /include/mysql/plugin_auth.h.pp
parent612c9964d35830fd54b0b1ec7893f886c393b9cb (diff)
downloadmariadb-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.pp12
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;