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