diff options
author | Sergei Golubchik <serg@mariadb.org> | 2014-12-03 23:51:47 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2014-12-04 10:41:55 +0100 |
commit | 8360e1a5b5e44debcc7aeaa10331278eb6273176 (patch) | |
tree | a971c74f153b0779d00a64df7959ea2334de2917 /include/mysql/plugin_audit.h.pp | |
parent | 0c7d773fca1497ce4edae0a72c6f01348b0ca9be (diff) | |
download | mariadb-git-8360e1a5b5e44debcc7aeaa10331278eb6273176.tar.gz |
MDEV-6712 THD specifics for plugins
thd_specifics service
Diffstat (limited to 'include/mysql/plugin_audit.h.pp')
-rw-r--r-- | include/mysql/plugin_audit.h.pp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mysql/plugin_audit.h.pp b/include/mysql/plugin_audit.h.pp index ce456806fb8..2d7bb6ee680 100644 --- a/include/mysql/plugin_audit.h.pp +++ b/include/mysql/plugin_audit.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; |