diff options
author | guilhem@mysql.com <> | 2005-02-05 15:29:38 +0100 |
---|---|---|
committer | guilhem@mysql.com <> | 2005-02-05 15:29:38 +0100 |
commit | b97a519d7204eb4c1a00f7bfc9dc56382b666ee4 (patch) | |
tree | c05cf0549ea3de7ec41daca955165851e64a01f0 /include | |
parent | fb113b94e45269ed3cb0e9eee057a8fb436b9cfc (diff) | |
parent | 3f9c4a913c1ad0176d13b4722d4a6af629dd3861 (diff) | |
download | mariadb-git-b97a519d7204eb4c1a00f7bfc9dc56382b666ee4.tar.gz |
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/mysql_src/mysql-4.1-clean
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mysql.h b/include/mysql.h index 2c0197e2300..d8a56126756 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -334,6 +334,17 @@ typedef struct st_mysql_parameters */ int STDCALL mysql_server_init(int argc, char **argv, char **groups); void STDCALL mysql_server_end(void); +/* + mysql_server_init/end need to be called when using libmysqld or + libmysqlclient (exactly, mysql_server_init() is called by mysql_init() so + you don't need to call it explicitely; but you need to call + mysql_server_end() to free memory). The names are a bit misleading + (mysql_SERVER* to be used when using libmysqlCLIENT). So we add more general + names which suit well whether you're using libmysqld or libmysqlclient. We + intend to promote these aliases over the mysql_server* ones. +*/ +#define mysql_library_init mysql_server_init +#define mysql_library_end mysql_server_end MYSQL_PARAMETERS *STDCALL mysql_get_parameters(void); |