~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/* Copyright (C) 2003-2004, 2006 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 */
15
16
17
extern const char	*unknown_sqlstate;
18
extern const char	*cant_connect_sqlstate;
19
extern const char	*not_error_sqlstate;
20
21
#ifdef	__cplusplus
22
extern "C" {
23
#endif
24
25
extern CHARSET_INFO *default_client_charset_info;
206.3.1 by Patrick Galbraith
Most everything working with client rename
26
DRIZZLE_FIELD *unpack_fields(DRIZZLE_DATA *data,MEM_ROOT *alloc,uint fields,
1 by brian
clean slate
27
			   my_bool default_value, uint server_capabilities);
206.3.1 by Patrick Galbraith
Most everything working with client rename
28
void free_rows(DRIZZLE_DATA *cur);
29
void free_old_query(DRIZZLE *drizzle);
30
void end_server(DRIZZLE *drizzle);
31
my_bool drizzle_reconnect(DRIZZLE *drizzle);
32
void drizzle_read_default_options(struct st_drizzle_options *options,
1 by brian
clean slate
33
				const char *filename,const char *group);
164 by Brian Aker
Commit cleanup of export types.
34
bool
206.3.1 by Patrick Galbraith
Most everything working with client rename
35
cli_advanced_command(DRIZZLE *drizzle, enum enum_server_command command,
164 by Brian Aker
Commit cleanup of export types.
36
		     const unsigned char *header, uint32_t header_length,
37
		     const unsigned char *arg, uint32_t arg_length, bool skip_check);
206.3.1 by Patrick Galbraith
Most everything working with client rename
38
uint32_t cli_safe_read(DRIZZLE *drizzle);
1 by brian
clean slate
39
void net_clear_error(NET *net);
206.3.1 by Patrick Galbraith
Most everything working with client rename
40
void set_drizzle_error(DRIZZLE *drizzle, int errcode, const char *sqlstate);
1 by brian
clean slate
41
#ifdef	__cplusplus
42
}
43
#endif
44
45
#define protocol_41(A) ((A)->server_capabilities & CLIENT_PROTOCOL_41)
46