~michaeleguo/ubuntu/trusty/percona-xtradb-cluster-5.5/arm64fix

« back to all changes in this revision

Viewing changes to libmysql/client_settings.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-10 14:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20140210144423-f2134l2gxuvq2m6l
Tags: upstream-5.5.34-25.9+dfsg
ImportĀ upstreamĀ versionĀ 5.5.34-25.9+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
 
2
   
 
3
   This program is free software; you can redistribute it and/or modify
 
4
   it under the terms of the GNU General Public License as published by
 
5
   the Free Software Foundation; version 2 of the License.
 
6
   
 
7
   This program is distributed in the hope that it will be useful,
 
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
   GNU General Public License for more details.
 
11
   
 
12
   You should have received a copy of the GNU General Public License
 
13
   along with this program; if not, write to the Free Software
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */
 
15
 
 
16
#ifndef CLIENT_SETTINGS_INCLUDED
 
17
#define CLIENT_SETTINGS_INCLUDED
 
18
#else
 
19
#error You have already included an client_settings.h and it should not be included twice
 
20
#endif /* CLIENT_SETTINGS_INCLUDED */
 
21
 
 
22
extern uint             mysql_port;
 
23
extern char *   mysql_unix_port;
 
24
 
 
25
/*
 
26
 Note: CLIENT_CAPABILITIES is also defined in sql/client_settings.h.
 
27
 When adding capabilities here, consider if they should be also added to
 
28
 the server's version.
 
29
*/
 
30
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | \
 
31
                             CLIENT_LONG_FLAG |     \
 
32
                             CLIENT_TRANSACTIONS |  \
 
33
                             CLIENT_PROTOCOL_41 | \
 
34
                             CLIENT_SECURE_CONNECTION | \
 
35
                             CLIENT_MULTI_RESULTS | \
 
36
                             CLIENT_PS_MULTI_RESULTS | \
 
37
                             CLIENT_PLUGIN_AUTH)
 
38
 
 
39
sig_handler my_pipe_sig_handler(int sig);
 
40
void read_user_name(char *name);
 
41
my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
 
42
 
 
43
void mysql_read_default_options(struct st_mysql_options *options,
 
44
                                const char *filename,const char *group);
 
45
void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name);
 
46
MYSQL * STDCALL
 
47
cli_mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
 
48
                       const char *passwd, const char *db,
 
49
                       uint port, const char *unix_socket,ulong client_flag);
 
50
 
 
51
void cli_mysql_close(MYSQL *mysql);
 
52
 
 
53
MYSQL_FIELD * cli_list_fields(MYSQL *mysql);
 
54
my_bool cli_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt);
 
55
MYSQL_DATA * cli_read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
 
56
                                   uint fields);
 
57
int cli_stmt_execute(MYSQL_STMT *stmt);
 
58
int cli_read_binary_rows(MYSQL_STMT *stmt);
 
59
int cli_unbuffered_fetch(MYSQL *mysql, char **row);
 
60
const char * cli_read_statistics(MYSQL *mysql);
 
61
int cli_read_change_user_result(MYSQL *mysql);
 
62
 
 
63
#ifdef EMBEDDED_LIBRARY
 
64
int init_embedded_server(int argc, char **argv, char **groups);
 
65
void end_embedded_server();
 
66
#endif /*EMBEDDED_LIBRARY*/
 
67
 
 
68
C_MODE_START
 
69
extern int mysql_init_character_set(MYSQL *mysql);
 
70
C_MODE_END