Eneboo - Documentación para desarrolladores
src/libmysql_macosx/client_settings.h
Ir a la documentación de este archivo.
00001 /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
00002    
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; either version 2 of the License, or
00006    (at your option) any later version.
00007    
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011    GNU General Public License for more details.
00012    
00013    You should have received a copy of the GNU General Public License
00014    along with this program; if not, write to the Free Software
00015    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00016 
00017 extern uint             mysql_port;
00018 extern my_string        mysql_unix_port;
00019 
00020 #define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG |    \
00021                              CLIENT_TRANSACTIONS | \
00022                              CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION)
00023 
00024 sig_handler pipe_sig_handler(int sig);
00025 void read_user_name(char *name);
00026 my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
00027 
00028 /*
00029   Let the user specify that we don't want SIGPIPE;  This doesn't however work
00030   with threaded applications as we can have multiple read in progress.
00031 */
00032 
00033 #if !defined(__WIN__) && defined(SIGPIPE) && !defined(THREAD)
00034 #define init_sigpipe_variables  sig_return old_signal_handler=(sig_return) 0;
00035 #define set_sigpipe(mysql)     if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) old_signal_handler=signal(SIGPIPE,pipe_sig_handler)
00036 #define reset_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) signal(SIGPIPE,old_signal_handler);
00037 #else
00038 #define init_sigpipe_variables
00039 #define set_sigpipe(mysql)
00040 #define reset_sigpipe(mysql)
00041 #endif
00042 
00043 void mysql_read_default_options(struct st_mysql_options *options,
00044                                 const char *filename,const char *group);
00045 void mysql_detach_stmt_list(LIST **stmt_list);
00046 MYSQL * STDCALL
00047 cli_mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
00048                        const char *passwd, const char *db,
00049                        uint port, const char *unix_socket,ulong client_flag);
00050 
00051 void cli_mysql_close(MYSQL *mysql);
00052 
00053 MYSQL_FIELD * cli_list_fields(MYSQL *mysql);
00054 my_bool cli_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt);
00055 MYSQL_DATA * cli_read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
00056                                    uint fields);
00057 int cli_stmt_execute(MYSQL_STMT *stmt);
00058 int cli_read_binary_rows(MYSQL_STMT *stmt);
00059 int cli_unbuffered_fetch(MYSQL *mysql, char **row);
00060 const char * cli_read_statistics(MYSQL *mysql);
00061 int cli_read_change_user_result(MYSQL *mysql, char *buff, const char *passwd);
00062 
00063 #ifdef EMBEDDED_LIBRARY
00064 int init_embedded_server(int argc, char **argv, char **groups);
00065 void end_embedded_server();
00066 #endif /*EMBEDDED_LIBRARY*/
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'