diff options
author | hf@deer.(none) <> | 2003-09-18 18:28:42 +0500 |
---|---|---|
committer | hf@deer.(none) <> | 2003-09-18 18:28:42 +0500 |
commit | 0e059dcb74eddc89049104f4c9962d6591efeb97 (patch) | |
tree | 593ba69d5c29894f275cbfb3fd65924fcde6fef3 /include/mysql.h | |
parent | aa7fd6f4a3d84c2954eb4cae39ce30f476852d00 (diff) | |
download | mariadb-git-0e059dcb74eddc89049104f4c9962d6591efeb97.tar.gz |
SCRUM:
embedded library
I decided to get rid of #define mysql_some_function in mysql.h
It puzzles users and makes problems with dynamic libraries
Finally, there are only two functions left, that are covered with
the #define-s and it won't hurt performance at all
Diffstat (limited to 'include/mysql.h')
-rw-r--r-- | include/mysql.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mysql.h b/include/mysql.h index a2da4f353f7..2feed6da1f9 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -359,6 +359,7 @@ int STDCALL mysql_send_query(MYSQL *mysql, const char *q, int STDCALL mysql_real_query(MYSQL *mysql, const char *q, unsigned long length); MYSQL_RES * STDCALL mysql_store_result(MYSQL *mysql); +MYSQL_RES * STDCALL mysql_use_result(MYSQL *mysql); /* perform query on master */ my_bool STDCALL mysql_master_query(MYSQL *mysql, const char *q, @@ -460,6 +461,7 @@ int STDCALL mysql_manager_command(MYSQL_MANAGER* con, int STDCALL mysql_manager_fetch_line(MYSQL_MANAGER* con, char* res_buf, int res_buf_size); +my_bool STDCALL mysql_read_query_result(MYSQL *mysql); /* @@ -540,9 +542,6 @@ typedef struct st_mysql_stmt } MYSQL_STMT; -#define mysql_read_query_result(mysql) (*(mysql)->methods->read_query_result)(mysql) -#define mysql_use_result(mysql) (*(mysql)->methods->use_result)(mysql) - typedef struct st_mysql_methods { my_bool (STDCALL *read_query_result)(MYSQL *mysql); |