~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/client_settings.h

  • Committer: Stewart Smith
  • Date: 2008-08-02 07:12:36 UTC
  • mfrom: (258 drizzle)
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080802071236-kbcozl5zm23j6mkn
mergeĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2003-2005 MySQL AB
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 MySQL
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 */
 
20
 
 
21
#ifndef _libdrizzle_client_settings_h
 
22
#define _libdrizzle_client_settings_h
15
23
 
16
24
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG |    \
17
25
                             CLIENT_TRANSACTIONS | \
18
26
                             CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION)
19
27
 
20
28
sig_handler my_pipe_sig_handler(int sig);
21
 
void read_user_name(char *name);
22
 
my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
 
29
bool handle_local_infile(DRIZZLE *drizzle, const char *net_filename);
23
30
 
24
31
 
25
32
/* TODO: Do we still need these now that there's not non-threaded stuff? */
26
33
#define init_sigpipe_variables
27
 
#define set_sigpipe(mysql)
28
 
#define reset_sigpipe(mysql)
 
34
#define set_sigpipe(drizzle)
 
35
#define reset_sigpipe(drizzle)
29
36
 
30
37
void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name);
31
 
MYSQL * STDCALL
32
 
cli_mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
 
38
DRIZZLE * STDCALL
 
39
cli_drizzle_connect(DRIZZLE *drizzle,const char *host, const char *user,
33
40
                       const char *passwd, const char *db,
34
41
                       uint port, const char *unix_socket,ulong client_flag);
35
42
 
36
 
void cli_mysql_close(MYSQL *mysql);
 
43
void cli_drizzle_close(DRIZZLE *drizzle);
37
44
 
38
 
MYSQL_FIELD * cli_list_fields(MYSQL *mysql);
39
 
MYSQL_DATA * cli_read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
 
45
DRIZZLE_FIELD * cli_list_fields(DRIZZLE *drizzle);
 
46
DRIZZLE_DATA * cli_read_rows(DRIZZLE *drizzle,DRIZZLE_FIELD *drizzle_fields,
40
47
                                   uint fields);
41
 
int cli_unbuffered_fetch(MYSQL *mysql, char **row);
42
 
const char * cli_read_statistics(MYSQL *mysql);
43
 
int cli_read_change_user_result(MYSQL *mysql, char *buff, const char *passwd);
 
48
int cli_unbuffered_fetch(DRIZZLE *drizzle, char **row);
 
49
const char * cli_read_statistics(DRIZZLE *drizzle);
 
50
int cli_read_change_user_result(DRIZZLE *drizzle);
44
51
 
45
52
C_MODE_START
46
 
extern int mysql_init_character_set(MYSQL *mysql);
 
53
extern int drizzle_init_character_set(DRIZZLE *drizzle);
47
54
C_MODE_END
 
55
 
 
56
#endif