summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-09-18 18:28:42 +0500
committerunknown <hf@deer.(none)>2003-09-18 18:28:42 +0500
commit88fcf2a9433f60eddda31504ba14dfe87b375d2c (patch)
tree593ba69d5c29894f275cbfb3fd65924fcde6fef3 /include
parentcbc431dbdfcd9a99e5c74d88cb0ac0b2ae65f918 (diff)
downloadmariadb-git-88fcf2a9433f60eddda31504ba14dfe87b375d2c.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 client/mysqltest.c: that'll be faster include/mysql.h: #defines changed to functions libmysql/libmysql.c: that'll be faster that calls of wrapper functions libmysqld/libmysqld.c: skip wrapper function sql-common/client.c: skip wrapper function
Diffstat (limited to 'include')
-rw-r--r--include/mysql.h5
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);