34
34
enum enum_field_types;
35
35
enum enum_ft_token_type;
36
36
enum enum_ftparser_mode;
37
enum enum_mysql_set_option;
37
enum enum_drizzle_set_option;
38
38
enum enum_mysql_show_type;
39
39
enum enum_mysql_stmt_state;
40
40
enum enum_mysql_timestamp_type;
41
41
enum enum_server_command;
42
42
enum enum_stmt_attr_type;
43
enum mysql_enum_shutdown_level;
45
enum mysql_protocol_type;
48
typedef struct st_mysql_rows MYSQL_ROWS;
43
enum drizzle_enum_shutdown_level;
45
enum drizzle_protocol_type;
48
typedef struct st_DRIZZLE_ROWs DRIZZLE_ROWS;
50
50
typedef struct st_list LIST;
52
52
typedef struct st_mem_root MEM_ROOT;
54
typedef struct st_mysql MYSQL;
56
typedef struct st_mysql_bind MYSQL_BIND;
58
typedef struct st_mysql_field MYSQL_FIELD;
60
typedef unsigned int MYSQL_FIELD_OFFSET;
54
typedef struct st_drizzle MYSQL;
56
typedef struct st_drizzle_bind MYSQL_BIND;
58
typedef struct st_DRIZZLE_FIELD DRIZZLE_FIELD;
60
typedef unsigned int DRIZZLE_FIELD_OFFSET;
61
61
# 35 "mysql/plugin.h"
62
typedef struct st_mysql_lex_string MYSQL_LEX_STRING;
64
typedef struct st_mysql_parameters MYSQL_PARAMETERS;
66
typedef struct st_mysql_res MYSQL_RES;
68
typedef char * * MYSQL_ROW;
70
typedef MYSQL_ROWS * MYSQL_ROW_OFFSET;
72
typedef struct st_mysql_stmt MYSQL_STMT;
62
typedef struct st_drizzle_lex_string MYSQL_LEX_STRING;
64
typedef struct st_drizzle_parameters DRIZZLE_PARAMETERS;
66
typedef struct st_drizzle_res DRIZZLE_RES;
68
typedef char * * DRIZZLE_ROW;
70
typedef DRIZZLE_ROWS * DRIZZLE_ROW_OFFSET;
72
typedef struct st_drizzle_stmt MYSQL_STMT;
73
73
# 52 "mysql/plugin.h"
74
typedef struct st_mysql_xid MYSQL_XID;
74
typedef struct st_drizzle_xid MYSQL_XID;
76
76
typedef struct character_set MY_CHARSET_INFO;
78
78
typedef struct st_net NET;
80
80
typedef struct st_typelib TYPELIB;
82
82
typedef struct st_vio Vio;
84
84
typedef int (* list_walk_action)(void *, void *);
86
86
typedef char my_bool;
88
88
typedef int my_socket;
90
90
typedef unsigned long long int my_ulonglong;
91
91
# 214 "/usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h"
92
92
typedef unsigned int size_t;
94
94
typedef struct embedded_query_result EMBEDDED_QUERY_RESULT;
96
typedef struct st_mysql_data MYSQL_DATA;
96
typedef struct st_DRIZZLE_DATA DRIZZLE_DATA;
97
97
# 495 "mysql/plugin.h"
98
typedef struct st_mysql_ftparser_boolean_info MYSQL_FTPARSER_BOOLEAN_INFO;
98
typedef struct st_drizzle_ftparser_boolean_info MYSQL_FTPARSER_BOOLEAN_INFO;
99
99
# 557 "mysql/plugin.h"
100
typedef struct st_mysql_ftparser_param MYSQL_FTPARSER_PARAM;
102
typedef struct st_mysql_methods MYSQL_METHODS;
100
typedef struct st_drizzle_ftparser_param MYSQL_FTPARSER_PARAM;
102
typedef struct st_drizzle_methods DRIZZLE_METHODS;
103
103
# 47 "mysql_time.h"
104
typedef struct st_mysql_time MYSQL_TIME;
104
typedef struct st_drizzle_time MYSQL_TIME;
105
# 394 "drizzle_com.h"
106
106
typedef struct st_udf_args UDF_ARGS;
107
# 408 "drizzle_com.h"
108
108
typedef struct st_udf_init UDF_INIT;
109
109
# 26 "my_alloc.h"
110
110
typedef struct st_used_mem USED_MEM;
111
111
# 123 "mysql/plugin.h"
112
typedef int (* mysql_show_var_func)(void *, struct st_mysql_show_var *, char *);
112
typedef int (* mysql_show_var_func)(void *, struct st_drizzle_show_var *, char *);
113
113
# 170 "mysql/plugin.h"
114
typedef int (* mysql_var_check_func)(void * thd, struct st_mysql_sys_var * var, void * save, struct st_mysql_value * value);
114
typedef int (* mysql_var_check_func)(void * thd, struct st_drizzle_sys_var * var, void * save, struct st_drizzle_value * value);
115
115
# 188 "mysql/plugin.h"
116
typedef void (* mysql_var_update_func)(void * thd, struct st_mysql_sys_var * var, void * var_ptr, void * save);
116
typedef void (* mysql_var_update_func)(void * thd, struct st_drizzle_sys_var * var, void * var_ptr, void * save);
118
118
struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(void *)))) character_set
120
120
unsigned int number;
295
295
enum enum_ftparser_mode mode;
297
297
# 638 "mysql/plugin.h"
298
struct __attribute__((aligned(__alignof__(int)))) st_mysql_information_schema
298
struct __attribute__((aligned(__alignof__(int)))) st_drizzle_information_schema
300
300
int interface_version;
302
302
# 29 "mysql/plugin.h"
303
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned int)))) st_mysql_lex_string
303
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned int)))) st_drizzle_lex_string
306
306
unsigned int length;
309
struct __attribute__((aligned(__alignof__(void *)))) st_mysql_methods
309
struct __attribute__((aligned(__alignof__(void *)))) st_drizzle_methods
311
my_bool (* read_query_result)(MYSQL * mysql);
312
my_bool (* advanced_command)(MYSQL * mysql, enum enum_server_command, unsigned char const * header, unsigned long int, unsigned char const * arg, unsigned long int, my_bool, MYSQL_STMT * stmt);
313
MYSQL_DATA * (* read_rows)(MYSQL * mysql, MYSQL_FIELD * mysql_fields, unsigned int);
314
MYSQL_RES * (* use_result)(MYSQL * mysql);
315
void (* fetch_lengths)(unsigned long int * to, MYSQL_ROW, unsigned int);
316
void (* flush_use_result)(MYSQL * mysql);
317
MYSQL_FIELD * (* list_fields)(MYSQL * mysql);
318
my_bool (* read_prepare_result)(MYSQL * mysql, MYSQL_STMT * stmt);
311
my_bool (* read_query_result)(DRIZZLE * mysql);
312
my_bool (* advanced_command)(DRIZZLE * mysql, enum enum_server_command, unsigned char const * header, unsigned long int, unsigned char const * arg, unsigned long int, my_bool, MYSQL_STMT * stmt);
313
DRIZZLE_DATA * (* read_rows)(DRIZZLE * mysql, DRIZZLE_FIELD * DRIZZLE_FIELDs, unsigned int);
314
DRIZZLE_RES * (* use_result)(DRIZZLE * mysql);
315
void (* fetch_lengths)(unsigned long int * to, DRIZZLE_ROW, unsigned int);
316
void (* flush_use_result)(DRIZZLE * mysql);
317
DRIZZLE_FIELD * (* list_fields)(DRIZZLE * mysql);
318
my_bool (* read_prepare_result)(DRIZZLE * mysql, MYSQL_STMT * stmt);
319
319
int (* stmt_execute)(MYSQL_STMT * stmt);
320
320
int (* read_binary_rows)(MYSQL_STMT * stmt);
321
int (* unbuffered_fetch)(MYSQL * mysql, char * * row);
322
void (* free_embedded_thd)(MYSQL * mysql);
323
char const * (* read_statistics)(MYSQL * mysql);
324
my_bool (* next_result)(MYSQL * mysql);
325
int (* read_change_user_result)(MYSQL * mysql, char * buff, char const * passwd);
321
int (* unbuffered_fetch)(DRIZZLE * mysql, char * * row);
322
void (* free_embedded_thd)(DRIZZLE * mysql);
323
char const * (* read_statistics)(DRIZZLE * mysql);
324
my_bool (* next_result)(DRIZZLE * mysql);
325
int (* read_change_user_result)(DRIZZLE * mysql, char * buff, char const * passwd);
326
326
int (* read_rows_from_cursor)(MYSQL_STMT * stmt);
329
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(void *)))) st_mysql_options
329
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(void *)))) st_drizzle_options
331
331
unsigned int connect_timeout;
332
332
unsigned int read_timeout;
717
717
SHUTDOWN_WAIT_CRITICAL_BUFFERS = (((unsigned char)((1 << 3)) << 1) + 1),
718
718
KILL_CONNECTION = 255,
721
721
enum mysql_option
723
MYSQL_OPT_CONNECT_TIMEOUT = 0,
724
MYSQL_OPT_COMPRESS = 1,
725
MYSQL_OPT_NAMED_PIPE = 2,
726
MYSQL_INIT_COMMAND = 3,
727
MYSQL_READ_DEFAULT_FILE = 4,
728
MYSQL_READ_DEFAULT_GROUP = 5,
729
MYSQL_SET_CHARSET_DIR = 6,
730
MYSQL_SET_CHARSET_NAME = 7,
731
MYSQL_OPT_LOCAL_INFILE = 8,
732
MYSQL_OPT_PROTOCOL = 9,
733
MYSQL_SHARED_MEMORY_BASE_NAME = 10,
734
MYSQL_OPT_READ_TIMEOUT = 11,
735
MYSQL_OPT_WRITE_TIMEOUT = 12,
736
MYSQL_OPT_USE_RESULT = 13,
737
MYSQL_OPT_USE_REMOTE_CONNECTION = 14,
738
MYSQL_OPT_USE_EMBEDDED_CONNECTION = 15,
739
MYSQL_OPT_GUESS_CONNECTION = 16,
740
MYSQL_SET_CLIENT_IP = 17,
741
MYSQL_SECURE_AUTH = 18,
742
MYSQL_REPORT_DATA_TRUNCATION = 19,
743
MYSQL_OPT_RECONNECT = 20,
744
MYSQL_OPT_SSL_VERIFY_SERVER_CERT = 21,
723
DRIZZLE_OPT_CONNECT_TIMEOUT = 0,
724
DRIZZLE_OPT_COMPRESS = 1,
725
DRIZZLE_OPT_NAMED_PIPE = 2,
726
DRIZZLE_INIT_COMMAND = 3,
727
DRIZZLE_READ_DEFAULT_FILE = 4,
728
DRIZZLE_READ_DEFAULT_GROUP = 5,
729
DRIZZLE_SET_CHARSET_DIR = 6,
730
DRIZZLE_SET_CHARSET_NAME = 7,
731
DRIZZLE_OPT_LOCAL_INFILE = 8,
732
DRIZZLE_OPT_PROTOCOL = 9,
733
DRIZZLE_SHARED_MEMORY_BASE_NAME = 10,
734
DRIZZLE_OPT_READ_TIMEOUT = 11,
735
DRIZZLE_OPT_WRITE_TIMEOUT = 12,
736
DRIZZLE_OPT_USE_RESULT = 13,
737
DRIZZLE_OPT_USE_REMOTE_CONNECTION = 14,
738
DRIZZLE_OPT_USE_EMBEDDED_CONNECTION = 15,
739
DRIZZLE_OPT_GUESS_CONNECTION = 16,
740
DRIZZLE_SET_CLIENT_IP = 17,
741
DRIZZLE_SECURE_AUTH = 18,
742
DRIZZLE_REPORT_DATA_TRUNCATION = 19,
743
DRIZZLE_OPT_RECONNECT = 20,
744
DRIZZLE_OPT_SSL_VERIFY_SERVER_CERT = 21,
747
747
enum mysql_protocol_type
749
MYSQL_PROTOCOL_DEFAULT = 0,
750
MYSQL_PROTOCOL_TCP = 1,
751
MYSQL_PROTOCOL_SOCKET = 2,
752
MYSQL_PROTOCOL_PIPE = 3,
753
MYSQL_PROTOCOL_MEMORY = 4,
749
DRIZZLE_PROTOCOL_DEFAULT = 0,
750
DRIZZLE_PROTOCOL_TCP = 1,
751
DRIZZLE_PROTOCOL_SOCKET = 2,
752
DRIZZLE_PROTOCOL_PIPE = 3,
753
DRIZZLE_PROTOCOL_MEMORY = 4,
758
MYSQL_STATUS_READY = 0,
759
MYSQL_STATUS_GET_RESULT = 1,
760
MYSQL_STATUS_USE_RESULT = 2,
758
DRIZZLE_STATUS_READY = 0,
759
DRIZZLE_STATUS_GET_RESULT = 1,
760
DRIZZLE_STATUS_USE_RESULT = 2,
762
# 452 "drizzle_com.h"
763
763
extern my_bool check_scramble(char const * reply, char const * message, unsigned char const * hash_stage2);
764
# 445 "drizzle_com.h"
765
765
extern my_bool check_scramble_323(char const *, char const * message, unsigned long int * salt);
767
767
extern TYPELIB * copy_typelib(MEM_ROOT * root, TYPELIB * from);
768
# 440 "drizzle_com.h"
769
769
extern void create_random_string(char * to, unsigned int, struct rand_struct * rand_st);
771
771
extern int find_type(char * x, TYPELIB const * typelib, unsigned int);
797
797
extern LIST * list_reverse(LIST * root);
799
799
extern int list_walk(LIST *, list_walk_action, unsigned char * argument);
800
# 455 "drizzle_com.h"
801
801
extern void make_password_from_salt(char * to, unsigned char const * hash_stage2);
802
# 448 "drizzle_com.h"
803
803
extern void make_password_from_salt_323(char * to, unsigned long int const * salt);
804
# 450 "drizzle_com.h"
805
805
extern void make_scrambled_password(char * to, char const * password);
807
807
extern void make_type(char * to, unsigned int, TYPELIB * typelib);
808
# 377 "drizzle_com.h"
809
809
extern int my_connect(my_socket, struct sockaddr const * name, unsigned int, unsigned int);
810
# 358 "drizzle_com.h"
811
811
extern my_bool my_net_init(NET * net, Vio * vio);
812
# 359 "drizzle_com.h"
813
813
extern void my_net_local_init(NET * net);
814
# 369 "drizzle_com.h"
815
815
extern unsigned long int my_net_read(NET * net);
816
# 364 "drizzle_com.h"
817
817
extern my_bool my_net_write(NET * net, unsigned char const * packet, size_t);
818
# 439 "drizzle_com.h"
819
819
extern double my_rnd(struct rand_struct *);
820
# 466 "drizzle_com.h"
821
821
extern void my_thread_end(void);
822
# 465 "drizzle_com.h"
823
823
extern my_bool my_thread_init(void);
825
extern void myodbc_remove_escape(MYSQL * mysql, char * name);
827
extern my_ulonglong mysql_affected_rows(MYSQL * mysql);
829
extern my_bool mysql_autocommit(MYSQL * mysql, my_bool);
831
extern my_bool mysql_change_user(MYSQL * mysql, char const * user, char const * passwd, char const * db);
833
extern char const * mysql_character_set_name(MYSQL * mysql);
835
extern void mysql_close(MYSQL * sock);
837
extern my_bool mysql_commit(MYSQL * mysql);
839
extern void mysql_data_seek(MYSQL_RES * result, my_ulonglong);
841
extern int mysql_dump_debug_info(MYSQL * mysql);
843
extern my_bool mysql_embedded(void);
845
extern my_bool mysql_eof(MYSQL_RES * res);
847
extern unsigned int mysql_errno(MYSQL * mysql);
849
extern char const * mysql_errno_to_sqlstate(unsigned int);
851
extern char const * mysql_error(MYSQL * mysql);
853
extern unsigned long int mysql_escape_string(char * to, char const * from, unsigned long int);
855
extern MYSQL_FIELD * mysql_fetch_field(MYSQL_RES * result);
857
extern MYSQL_FIELD * mysql_fetch_field_direct(MYSQL_RES * res, unsigned int);
859
extern MYSQL_FIELD * mysql_fetch_fields(MYSQL_RES * res);
861
extern unsigned long int * mysql_fetch_lengths(MYSQL_RES * result);
863
extern MYSQL_ROW mysql_fetch_row(MYSQL_RES * result);
865
extern unsigned int mysql_field_count(MYSQL * mysql);
867
extern MYSQL_FIELD_OFFSET mysql_field_seek(MYSQL_RES * result, MYSQL_FIELD_OFFSET);
869
extern MYSQL_FIELD_OFFSET mysql_field_tell(MYSQL_RES * res);
871
extern void mysql_free_result(MYSQL_RES * result);
873
extern void mysql_get_character_set_info(MYSQL * mysql, MY_CHARSET_INFO * charset);
875
extern char const * mysql_get_client_info(void);
877
extern unsigned long int mysql_get_client_version(void);
879
extern char const * mysql_get_host_info(MYSQL * mysql);
881
extern MYSQL_PARAMETERS * mysql_get_parameters(void);
883
extern unsigned int mysql_get_proto_info(MYSQL * mysql);
885
extern char const * mysql_get_server_info(MYSQL * mysql);
887
extern unsigned long int mysql_get_server_version(MYSQL * mysql);
889
extern char const * mysql_get_ssl_cipher(MYSQL * mysql);
891
extern unsigned long int mysql_hex_string(char * to, char const * from, unsigned long int);
893
extern char const * mysql_info(MYSQL * mysql);
895
extern MYSQL * mysql_init(MYSQL * mysql);
897
extern my_ulonglong mysql_insert_id(MYSQL * mysql);
899
extern int mysql_kill(MYSQL * mysql, unsigned long int);
901
extern MYSQL_RES * mysql_list_dbs(MYSQL * mysql, char const * wild);
903
extern MYSQL_RES * mysql_list_fields(MYSQL * mysql, char const * table, char const * wild);
905
extern MYSQL_RES * mysql_list_processes(MYSQL * mysql);
907
extern MYSQL_RES * mysql_list_tables(MYSQL * mysql, char const * wild);
909
extern my_bool mysql_more_results(MYSQL * mysql);
911
extern int mysql_next_result(MYSQL * mysql);
913
extern unsigned int mysql_num_fields(MYSQL_RES * res);
915
extern my_ulonglong mysql_num_rows(MYSQL_RES * res);
917
extern int mysql_options(MYSQL * mysql, enum mysql_option, void const * arg);
919
extern int mysql_ping(MYSQL * mysql);
825
extern void myodbc_remove_escape(DRIZZLE * mysql, char * name);
827
extern my_ulonglong drizzle_affected_rows(DRIZZLE * mysql);
829
extern my_bool drizzle_autocommit(DRIZZLE * mysql, my_bool);
831
extern my_bool drizzle_change_user(DRIZZLE * mysql, char const * user, char const * passwd, char const * db);
833
extern char const * drizzle_character_set_name(DRIZZLE * mysql);
835
extern void drizzle_close(DRIZZLE * sock);
837
extern my_bool drizzle_commit(DRIZZLE * mysql);
839
extern void DRIZZLE_DATA_seek(DRIZZLE_RES * result, my_ulonglong);
841
extern int drizzle_dump_debug_info(DRIZZLE * mysql);
843
extern my_bool drizzle_embedded(void);
845
extern my_bool drizzle_eof(DRIZZLE_RES * res);
847
extern unsigned int drizzle_errno(DRIZZLE * mysql);
848
# 461 "drizzle_com.h"
849
extern char const * drizzle_errno_to_sqlstate(unsigned int);
851
extern char const * drizzle_error(DRIZZLE * mysql);
853
extern unsigned long int drizzle_escape_string(char * to, char const * from, unsigned long int);
855
extern DRIZZLE_FIELD * drizzle_fetch_field(DRIZZLE_RES * result);
857
extern DRIZZLE_FIELD * drizzle_fetch_field_direct(DRIZZLE_RES * res, unsigned int);
859
extern DRIZZLE_FIELD * drizzle_fetch_fields(DRIZZLE_RES * res);
861
extern unsigned long int * drizzle_fetch_lengths(DRIZZLE_RES * result);
863
extern DRIZZLE_ROW drizzle_fetch_row(DRIZZLE_RES * result);
865
extern unsigned int DRIZZLE_FIELD_count(DRIZZLE * mysql);
867
extern DRIZZLE_FIELD_OFFSET DRIZZLE_FIELD_seek(DRIZZLE_RES * result, DRIZZLE_FIELD_OFFSET);
869
extern DRIZZLE_FIELD_OFFSET DRIZZLE_FIELD_tell(DRIZZLE_RES * res);
871
extern void drizzle_free_result(DRIZZLE_RES * result);
873
extern void drizzle_get_character_set_info(DRIZZLE * mysql, MY_CHARSET_INFO * charset);
875
extern char const * drizzle_get_client_info(void);
877
extern unsigned long int drizzle_get_client_version(void);
879
extern char const * drizzle_get_host_info(DRIZZLE * mysql);
881
extern DRIZZLE_PARAMETERS * drizzle_get_parameters(void);
883
extern unsigned int drizzle_get_proto_info(DRIZZLE * mysql);
885
extern char const * drizzle_get_server_info(DRIZZLE * mysql);
887
extern unsigned long int drizzle_get_server_version(DRIZZLE * mysql);
889
extern char const * drizzle_get_ssl_cipher(DRIZZLE * mysql);
891
extern unsigned long int drizzle_hex_string(char * to, char const * from, unsigned long int);
893
extern char const * drizzle_info(DRIZZLE * mysql);
895
extern DRIZZLE * drizzle_init(DRIZZLE * mysql);
897
extern my_ulonglong drizzle_insert_id(DRIZZLE * mysql);
899
extern int drizzle_kill(DRIZZLE * mysql, unsigned long int);
901
extern DRIZZLE_RES * drizzle_list_dbs(DRIZZLE * mysql, char const * wild);
903
extern DRIZZLE_RES * drizzle_list_fields(DRIZZLE * mysql, char const * table, char const * wild);
905
extern DRIZZLE_RES * drizzle_list_processes(DRIZZLE * mysql);
907
extern DRIZZLE_RES * drizzle_list_tables(DRIZZLE * mysql, char const * wild);
909
extern my_bool drizzle_more_results(DRIZZLE * mysql);
911
extern int drizzle_next_result(DRIZZLE * mysql);
913
extern unsigned int drizzle_num_fields(DRIZZLE_RES * res);
915
extern my_ulonglong drizzle_num_rows(DRIZZLE_RES * res);
917
extern int drizzle_options(DRIZZLE * mysql, enum mysql_option, void const * arg);
919
extern int drizzle_ping(DRIZZLE * mysql);
921
921
extern unsigned int mysql_port;
923
extern int mysql_query(MYSQL * mysql, char const * q);
923
extern int drizzle_query(DRIZZLE * mysql, char const * q);
924
924
# 790 "mysql/plugin.h"
925
extern void mysql_query_cache_invalidate4(void * thd, char const * key, unsigned int, int);
927
extern my_bool mysql_read_query_result(MYSQL * mysql);
929
extern MYSQL * mysql_real_connect(MYSQL * mysql, char const * host, char const * user, char const * passwd, char const * db, unsigned int, char const * unix_socket, unsigned long int);
931
extern unsigned long int mysql_real_escape_string(MYSQL * mysql, char * to, char const * from, unsigned long int);
933
extern int mysql_real_query(MYSQL * mysql, char const * q, unsigned long int);
935
extern int mysql_refresh(MYSQL * mysql, unsigned int);
937
extern my_bool mysql_rollback(MYSQL * mysql);
939
extern MYSQL_ROW_OFFSET mysql_row_seek(MYSQL_RES * result, MYSQL_ROW_OFFSET);
941
extern MYSQL_ROW_OFFSET mysql_row_tell(MYSQL_RES * res);
943
extern int mysql_select_db(MYSQL * mysql, char const * db);
945
extern int mysql_send_query(MYSQL * mysql, char const * q, unsigned long int);
947
extern void mysql_server_end(void);
949
extern int mysql_server_init(int, char * * argv, char * * groups);
951
extern int mysql_set_character_set(MYSQL * mysql, char const * csname);
953
extern void mysql_set_local_infile_default(MYSQL * mysql);
955
extern void mysql_set_local_infile_handler(MYSQL * mysql, int (* local_infile_init)(void * *, char const *, void *), int (* local_infile_read)(void *, char *, unsigned int), void (* local_infile_end)(void), int (* local_infile_error)(void *, char *, unsigned int), void *);
957
extern int mysql_set_server_option(MYSQL * mysql, enum enum_mysql_set_option);
959
extern int mysql_shutdown(MYSQL * mysql, enum mysql_enum_shutdown_level);
961
extern char const * mysql_sqlstate(MYSQL * mysql);
963
extern my_bool mysql_ssl_set(MYSQL * mysql, char const * key, char const * cert, char const * ca, char const * capath, char const * cipher);
965
extern char const * mysql_stat(MYSQL * mysql);
925
extern void drizzle_query_cache_invalidate4(void * thd, char const * key, unsigned int, int);
927
extern my_bool drizzle_read_query_result(DRIZZLE * mysql);
929
extern DRIZZLE * drizzle_connect(DRIZZLE * mysql, char const * host, char const * user, char const * passwd, char const * db, unsigned int, char const * unix_socket, unsigned long int);
931
extern unsigned long int drizzle_real_escape_string(DRIZZLE * mysql, char * to, char const * from, unsigned long int);
933
extern int drizzle_real_query(DRIZZLE * mysql, char const * q, unsigned long int);
935
extern int drizzle_refresh(DRIZZLE * mysql, unsigned int);
937
extern my_bool drizzle_rollback(DRIZZLE * mysql);
939
extern DRIZZLE_ROW_OFFSET DRIZZLE_ROW_seek(DRIZZLE_RES * result, DRIZZLE_ROW_OFFSET);
941
extern DRIZZLE_ROW_OFFSET DRIZZLE_ROW_tell(DRIZZLE_RES * res);
943
extern int drizzle_select_db(DRIZZLE * mysql, char const * db);
945
extern int drizzle_send_query(DRIZZLE * mysql, char const * q, unsigned long int);
947
extern void drizzle_server_end(void);
949
extern int drizzle_server_init(int, char * * argv, char * * groups);
951
extern int drizzle_set_character_set(DRIZZLE * mysql, char const * csname);
953
extern void drizzle_set_local_infile_default(DRIZZLE * mysql);
955
extern void drizzle_set_local_infile_handler(DRIZZLE * mysql, int (* local_infile_init)(void * *, char const *, void *), int (* local_infile_read)(void *, char *, unsigned int), void (* local_infile_end)(void), int (* local_infile_error)(void *, char *, unsigned int), void *);
957
extern int drizzle_set_server_option(DRIZZLE * mysql, enum enum_drizzle_set_option);
959
extern int drizzle_shutdown(DRIZZLE * mysql, enum drizzle_enum_shutdown_level);
961
extern char const * drizzle_sqlstate(DRIZZLE * mysql);
963
extern my_bool drizzle_ssl_set(DRIZZLE * mysql, char const * key, char const * cert, char const * ca, char const * capath, char const * cipher);
965
extern char const * drizzle_stat(DRIZZLE * mysql);
967
967
extern my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
969
969
extern my_bool mysql_stmt_attr_get(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void * attr);
971
971
extern my_bool mysql_stmt_attr_set(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void const * attr);
973
973
extern my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
975
975
extern my_bool mysql_stmt_bind_result(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
977
977
extern my_bool mysql_stmt_close(MYSQL_STMT * stmt);
979
979
extern void mysql_stmt_data_seek(MYSQL_STMT * stmt, my_ulonglong);
981
981
extern unsigned int mysql_stmt_errno(MYSQL_STMT * stmt);
983
983
extern char const * mysql_stmt_error(MYSQL_STMT * stmt);
985
985
extern int mysql_stmt_execute(MYSQL_STMT * stmt);
987
987
extern int mysql_stmt_fetch(MYSQL_STMT * stmt);
989
989
extern int mysql_stmt_fetch_column(MYSQL_STMT * stmt, MYSQL_BIND * bind_arg, unsigned int, unsigned long int);
991
991
extern unsigned int mysql_stmt_field_count(MYSQL_STMT * stmt);
993
993
extern my_bool mysql_stmt_free_result(MYSQL_STMT * stmt);
995
extern MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);
995
extern MYSQL_STMT * mysql_stmt_init(DRIZZLE * mysql);
997
997
extern my_ulonglong mysql_stmt_insert_id(MYSQL_STMT * stmt);
999
999
extern my_ulonglong mysql_stmt_num_rows(MYSQL_STMT * stmt);
1001
1001
extern unsigned long int mysql_stmt_param_count(MYSQL_STMT * stmt);
1003
extern MYSQL_RES * mysql_stmt_param_metadata(MYSQL_STMT * stmt);
1003
extern DRIZZLE_RES * mysql_stmt_param_metadata(MYSQL_STMT * stmt);
1005
1005
extern int mysql_stmt_prepare(MYSQL_STMT * stmt, char const * query, unsigned long int);
1007
1007
extern my_bool mysql_stmt_reset(MYSQL_STMT * stmt);
1009
extern MYSQL_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);
1011
extern MYSQL_ROW_OFFSET mysql_stmt_row_seek(MYSQL_STMT * stmt, MYSQL_ROW_OFFSET);
1013
extern MYSQL_ROW_OFFSET mysql_stmt_row_tell(MYSQL_STMT * stmt);
1009
extern DRIZZLE_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);
1011
extern DRIZZLE_ROW_OFFSET mysql_stmt_row_seek(MYSQL_STMT * stmt, DRIZZLE_ROW_OFFSET);
1013
extern DRIZZLE_ROW_OFFSET mysql_stmt_row_tell(MYSQL_STMT * stmt);
1015
1015
extern my_bool mysql_stmt_send_long_data(MYSQL_STMT * stmt, unsigned int, char const * data, unsigned long int);
1017
1017
extern char const * mysql_stmt_sqlstate(MYSQL_STMT * stmt);
1019
1019
extern int mysql_stmt_store_result(MYSQL_STMT * stmt);
1021
extern MYSQL_RES * mysql_store_result(MYSQL * mysql);
1023
extern void mysql_thread_end(void);
1025
extern unsigned long int mysql_thread_id(MYSQL * mysql);
1027
extern my_bool mysql_thread_init(void);
1029
extern unsigned int mysql_thread_safe(void);
1021
extern DRIZZLE_RES * drizzle_store_result(DRIZZLE * mysql);
1023
extern void drizzle_thread_end(void);
1025
extern unsigned long int drizzle_thread_id(DRIZZLE * mysql);
1027
extern my_bool drizzle_thread_init(void);
1029
extern unsigned int drizzle_thread_safe(void);
1030
1030
# 699 "mysql/plugin.h"
1031
1031
extern int mysql_tmpfile(char const * prefix);
1033
1033
extern char * mysql_unix_port;
1035
extern MYSQL_RES * mysql_use_result(MYSQL * mysql);
1037
extern unsigned int mysql_warning_count(MYSQL * mysql);
1035
extern DRIZZLE_RES * drizzle_use_result(DRIZZLE * mysql);
1037
extern unsigned int drizzle_warning_count(DRIZZLE * mysql);
1038
# 361 "drizzle_com.h"
1039
1039
extern void net_clear(NET * net, my_bool);
1040
# 360 "drizzle_com.h"
1041
1041
extern void net_end(NET * net);
1042
# 363 "drizzle_com.h"
1043
1043
extern my_bool net_flush(NET * net);
1044
# 368 "drizzle_com.h"
1045
1045
extern int net_real_write(NET * net, unsigned char const * packet, size_t);
1046
# 362 "drizzle_com.h"
1047
1047
extern my_bool net_realloc(NET * net, size_t);
1048
# 365 "drizzle_com.h"
1049
1049
extern my_bool net_write_command(NET * net, unsigned char, unsigned char const * header, size_t, unsigned char const * packet, size_t);
1050
# 456 "drizzle_com.h"
1051
1051
extern char * octet2hex(char * to, char const * str, unsigned int);
1052
# 437 "drizzle_com.h"
1053
1053
extern void randominit(struct rand_struct *, unsigned long int, unsigned long int);
1054
# 451 "drizzle_com.h"
1055
1055
extern void scramble(char * to, char const * message, char const * password);
1056
# 444 "drizzle_com.h"
1057
1057
extern void scramble_323(char * to, char const * message, char const * password);
1058
1058
# 37 "typelib.h"
1059
1059
extern TYPELIB sql_protocol_typelib;