summaryrefslogtreecommitdiff
path: root/include/mysql.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-02-13 12:57:11 +0100
committerSergei Golubchik <serg@mariadb.org>2015-02-13 12:57:11 +0100
commitfdd6c111c254c5044cd9b6c2f7e4d0c74f427a79 (patch)
treef85a55a2c6fe6591e32beddeb83c58066a978498 /include/mysql.h
parent5dce6aa1fe36d315f17eb9f4a0f5be808805e94c (diff)
downloadmariadb-git-fdd6c111c254c5044cd9b6c2f7e4d0c74f427a79.tar.gz
MDEV-7419 Function cli_safe_read not exportedmariadb-5.5.42
Start the client API for low-level protocol access: * unsigned long mysql_net_read_packet(MYSQL *mysql); * unsigned long mysql_net_field_length(unsigned char **packet);
Diffstat (limited to 'include/mysql.h')
-rw-r--r--include/mysql.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mysql.h b/include/mysql.h
index d7fe5edef1e..2f205ec6463 100644
--- a/include/mysql.h
+++ b/include/mysql.h
@@ -854,6 +854,12 @@ my_socket STDCALL mysql_get_socket(const MYSQL *mysql);
unsigned int STDCALL mysql_get_timeout_value(const MYSQL *mysql);
unsigned int STDCALL mysql_get_timeout_value_ms(const MYSQL *mysql);
+/********************************************************************
+ mysql_net_ functions - low-level API to MySQL protocol
+*********************************************************************/
+unsigned long STDCALL mysql_net_read_packet(MYSQL *mysql);
+unsigned long STDCALL mysql_net_field_length(unsigned char **packet);
+
/* status return codes */
#define MYSQL_NO_DATA 100
#define MYSQL_DATA_TRUNCATED 101