~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libmysql/client_settings.h

  • Committer: Mark Atwood
  • Date: 2008-07-01 21:25:46 UTC
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: mark@localhost.localdomain-20080701212546-jzs7ljtwcp2dcmgd
Remove all OpenSSL and all YaSSL code

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
 
16
extern uint             mysql_port;
 
17
extern char *   mysql_unix_port;
 
18
 
16
19
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG |    \
17
20
                             CLIENT_TRANSACTIONS | \
18
21
                             CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION)
21
24
void read_user_name(char *name);
22
25
my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
23
26
 
 
27
/*
 
28
  Let the user specify that we don't want SIGPIPE;  This doesn't however work
 
29
  with threaded applications as we can have multiple read in progress.
 
30
*/
24
31
 
25
 
/* TODO: Do we still need these now that there's not non-threaded stuff? */
 
32
#if !defined(__WIN__) && defined(SIGPIPE) && !defined(THREAD)
 
33
#define init_sigpipe_variables  sig_return old_signal_handler=(sig_return) 0;
 
34
#define set_sigpipe(mysql)     if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) old_signal_handler=signal(SIGPIPE, my_pipe_sig_handler)
 
35
#define reset_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) signal(SIGPIPE,old_signal_handler);
 
36
#else
26
37
#define init_sigpipe_variables
27
38
#define set_sigpipe(mysql)
28
39
#define reset_sigpipe(mysql)
 
40
#endif
29
41
 
 
42
void mysql_read_default_options(struct st_mysql_options *options,
 
43
                                const char *filename,const char *group);
30
44
void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name);
31
45
MYSQL * STDCALL
32
46
cli_mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
36
50
void cli_mysql_close(MYSQL *mysql);
37
51
 
38
52
MYSQL_FIELD * cli_list_fields(MYSQL *mysql);
 
53
my_bool cli_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt);
39
54
MYSQL_DATA * cli_read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
40
55
                                   uint fields);
 
56
int cli_stmt_execute(MYSQL_STMT *stmt);
 
57
int cli_read_binary_rows(MYSQL_STMT *stmt);
41
58
int cli_unbuffered_fetch(MYSQL *mysql, char **row);
42
59
const char * cli_read_statistics(MYSQL *mysql);
43
60
int cli_read_change_user_result(MYSQL *mysql, char *buff, const char *passwd);
44
61
 
 
62
#ifdef EMBEDDED_LIBRARY
 
63
int init_embedded_server(int argc, char **argv, char **groups);
 
64
void end_embedded_server();
 
65
#endif /*EMBEDDED_LIBRARY*/
 
66
 
45
67
C_MODE_START
46
68
extern int mysql_init_character_set(MYSQL *mysql);
47
69
C_MODE_END