summaryrefslogtreecommitdiff
path: root/include/sql_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sql_common.h')
-rw-r--r--include/sql_common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sql_common.h b/include/sql_common.h
index 6b66ae2fd81..8bb33e3779c 100644
--- a/include/sql_common.h
+++ b/include/sql_common.h
@@ -26,11 +26,18 @@ extern const char *unknown_sqlstate;
extern const char *cant_connect_sqlstate;
extern const char *not_error_sqlstate;
+
+struct mysql_async_context;
+
struct st_mysql_options_extention {
char *plugin_dir;
char *default_auth;
};
+struct st_mysql_extension {
+ struct mysql_async_context *async_context;
+};
+
typedef struct st_mysql_methods
{
my_bool (*read_query_result)(MYSQL *mysql);
@@ -102,6 +109,10 @@ void mysql_client_plugin_deinit();
struct st_mysql_client_plugin;
extern struct st_mysql_client_plugin *mysql_client_builtins[];
+/* Non-blocking client API. */
+void my_context_install_suspend_resume_hook(struct mysql_async_context *b,
+ void (*)(my_bool, void *), void *);
+
#ifdef __cplusplus
}
#endif