7
struct st_mysql_daemon;
10
struct st_mysql_ftparser;
11
struct st_mysql_ftparser_boolean_info;
12
struct st_mysql_ftparser_param;
13
struct st_mysql_information_schema;
14
struct st_mysql_lex_string;
15
struct st_mysql_methods;
16
struct st_mysql_options;
17
struct st_mysql_parameters;
18
struct st_mysql_plugin;
21
struct st_mysql_show_var;
23
struct st_mysql_storage_engine;
25
struct st_mysql_value;
33
enum enum_cursor_type;
34
enum enum_field_types;
35
enum enum_ft_token_type;
36
enum enum_ftparser_mode;
37
enum enum_mysql_set_option;
38
enum enum_mysql_show_type;
39
enum enum_mysql_stmt_state;
40
enum enum_mysql_timestamp_type;
41
enum enum_server_command;
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;
50
typedef struct st_list LIST;
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;
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;
74
typedef struct st_mysql_xid MYSQL_XID;
76
typedef struct character_set MY_CHARSET_INFO;
78
typedef struct st_net NET;
80
typedef struct st_typelib TYPELIB;
82
typedef struct st_vio Vio;
84
typedef int (* list_walk_action)(void *, void *);
88
typedef int my_socket;
90
typedef unsigned long long int my_ulonglong;
91
# 214 "/usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h"
92
typedef unsigned int size_t;
94
typedef struct embedded_query_result EMBEDDED_QUERY_RESULT;
96
typedef struct st_mysql_data MYSQL_DATA;
97
# 495 "mysql/plugin.h"
98
typedef struct st_mysql_ftparser_boolean_info MYSQL_FTPARSER_BOOLEAN_INFO;
99
# 557 "mysql/plugin.h"
100
typedef struct st_mysql_ftparser_param MYSQL_FTPARSER_PARAM;
102
typedef struct st_mysql_methods MYSQL_METHODS;
104
typedef struct st_mysql_time MYSQL_TIME;
106
typedef struct st_udf_args UDF_ARGS;
108
typedef struct st_udf_init UDF_INIT;
110
typedef struct st_used_mem USED_MEM;
111
# 123 "mysql/plugin.h"
112
typedef int (* mysql_show_var_func)(void *, struct st_mysql_show_var *, char *);
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);
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);
118
struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(void *)))) character_set
124
char const * comment;
126
unsigned int mbminlen;
127
unsigned int mbmaxlen;
130
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(double)))) rand_struct
132
unsigned long int seed1;
133
unsigned long int seed2;
134
unsigned long int max_value;
135
double max_value_dbl;
138
struct __attribute__((aligned(__alignof__(void *)))) st_list
140
struct st_list * prev;
141
struct st_list * next;
145
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned int)))) st_mem_root
149
USED_MEM * pre_alloc;
152
unsigned int block_num;
153
unsigned int first_block_usage;
154
void (* error_handler)(void);
157
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long long int)))) st_mysql
160
unsigned char * connector_fd;
165
char * server_version;
169
struct charset_info_st * charset;
170
MYSQL_FIELD * fields;
171
MEM_ROOT field_alloc;
172
my_ulonglong affected_rows;
173
my_ulonglong insert_id;
174
my_ulonglong extra_info;
175
unsigned long int thread_id;
176
unsigned long int packet_length;
178
unsigned long int client_flag;
179
unsigned long int server_capabilities;
180
unsigned int protocol_version;
181
unsigned int field_count;
182
unsigned int server_status;
183
unsigned int server_language;
184
unsigned int warning_count;
185
struct st_mysql_options options;
186
enum mysql_status status;
189
char scramble[(20 + 1)];
196
struct st_mysql_methods const * methods;
198
my_bool * unbuffered_fetch_owner;
203
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_mysql_bind
205
unsigned long int * length;
209
unsigned char * row_ptr;
210
void (* store_param_func)(NET * net, struct st_mysql_bind * param);
211
void (* fetch_result)(struct st_mysql_bind *, MYSQL_FIELD *, unsigned char * * row);
212
void (* skip_result)(struct st_mysql_bind *, MYSQL_FIELD *, unsigned char * * row);
213
unsigned long int buffer_length;
214
unsigned long int offset;
215
unsigned long int length_value;
216
unsigned int param_number;
217
unsigned int pack_length;
218
enum enum_field_types buffer_type;
221
my_bool long_data_used;
222
my_bool is_null_value;
225
# 628 "mysql/plugin.h"
226
struct __attribute__((aligned(__alignof__(int)))) st_mysql_daemon
228
int interface_version;
231
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long long int)))) st_mysql_data
234
struct embedded_query_result * embedded_info;
241
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_mysql_field
250
unsigned long int length;
251
unsigned long int max_length;
252
unsigned int name_length;
253
unsigned int org_name_length;
254
unsigned int table_length;
255
unsigned int org_table_length;
256
unsigned int db_length;
257
unsigned int catalog_length;
258
unsigned int def_length;
260
unsigned int decimals;
261
unsigned int charsetnr;
262
enum enum_field_types type;
265
# 581 "mysql/plugin.h"
266
struct __attribute__((aligned(__alignof__(int)), aligned(__alignof__(void *)))) st_mysql_ftparser
268
int interface_version;
269
int (* parse)(MYSQL_FTPARSER_PARAM * param);
270
int (* init)(MYSQL_FTPARSER_PARAM * param);
271
int (* deinit)(MYSQL_FTPARSER_PARAM * param);
273
# 495 "mysql/plugin.h"
274
struct __attribute__((aligned(__alignof__(int)), aligned(__alignof__(void *)))) st_mysql_ftparser_boolean_info
276
enum enum_ft_token_type type;
284
# 557 "mysql/plugin.h"
285
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(int)))) st_mysql_ftparser_param
287
int (* mysql_parse)(struct st_mysql_ftparser_param *, char * doc, int);
288
int (* mysql_add_word)(struct st_mysql_ftparser_param *, char * word, int, MYSQL_FTPARSER_BOOLEAN_INFO * boolean_info);
289
void * ftparser_state;
290
void * mysql_ftparam;
291
struct charset_info_st * cs;
295
enum enum_ftparser_mode mode;
297
# 638 "mysql/plugin.h"
298
struct __attribute__((aligned(__alignof__(int)))) st_mysql_information_schema
300
int interface_version;
302
# 29 "mysql/plugin.h"
303
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned int)))) st_mysql_lex_string
309
struct __attribute__((aligned(__alignof__(void *)))) st_mysql_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);
319
int (* stmt_execute)(MYSQL_STMT * stmt);
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);
326
int (* read_rows_from_cursor)(MYSQL_STMT * stmt);
329
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(void *)))) st_mysql_options
331
unsigned int connect_timeout;
332
unsigned int read_timeout;
333
unsigned int write_timeout;
335
unsigned int protocol;
336
unsigned long int client_flag;
342
struct st_dynamic_array * init_commands;
352
char * shared_memory_base_name;
353
unsigned long int max_allowed_packet;
361
enum mysql_option methods_to_use;
364
my_bool report_data_truncation;
365
int (* local_infile_init)(void * *, char const *, void *);
366
int (* local_infile_read)(void *, char *, unsigned int);
367
void (* local_infile_end)(void);
368
int (* local_infile_error)(void *, char *, unsigned int);
369
void * local_infile_userdata;
373
struct __attribute__((aligned(__alignof__(void *)))) st_mysql_parameters
375
unsigned long int * p_max_allowed_packet;
376
unsigned long int * p_net_buffer_length;
379
# 384 "mysql/plugin.h"
380
struct __attribute__((aligned(__alignof__(int)), aligned(__alignof__(void *)))) st_mysql_plugin
389
int (* deinit)(void);
390
unsigned int version;
391
struct st_mysql_show_var * status_vars;
392
struct st_mysql_sys_var * * system_vars;
396
struct __attribute__((aligned(__alignof__(unsigned long long int)), aligned(__alignof__(void *)))) st_mysql_res
398
my_ulonglong row_count;
399
MYSQL_FIELD * fields;
401
MYSQL_ROWS * data_cursor;
402
unsigned long int * lengths;
404
struct st_mysql_methods const * methods;
406
MYSQL_ROW current_row;
407
MEM_ROOT field_alloc;
408
unsigned int field_count;
409
unsigned int current_field;
411
my_bool unbuffered_fetch_cancelled;
415
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_mysql_rows
417
struct st_mysql_rows * next;
419
unsigned long int length;
421
# 116 "mysql/plugin.h"
422
struct __attribute__((aligned(__alignof__(void *)))) st_mysql_show_var
426
enum enum_mysql_show_type type;
429
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long long int)))) st_mysql_stmt
436
MYSQL_FIELD * fields;
438
MYSQL_ROWS * data_cursor;
439
int (* read_row_func)(struct st_mysql_stmt * stmt, unsigned char * * row);
440
my_ulonglong affected_rows;
441
my_ulonglong insert_id;
442
unsigned long int stmt_id;
443
unsigned long int flags;
444
unsigned long int prefetch_rows;
445
unsigned int server_status;
446
unsigned int last_errno;
447
unsigned int param_count;
448
unsigned int field_count;
449
enum enum_mysql_stmt_state state;
450
char last_error[512];
451
char sqlstate[(5 + 1)];
452
my_bool send_types_to_server;
453
my_bool bind_param_done;
454
unsigned char bind_result_done;
455
my_bool unbuffered_fetch_cancelled;
456
my_bool update_max_length;
459
# 616 "mysql/plugin.h"
460
struct __attribute__((aligned(__alignof__(int)))) st_mysql_storage_engine
462
int interface_version;
465
struct __attribute__((aligned(__alignof__(unsigned long int)))) st_mysql_time
473
unsigned long int second_part;
475
enum enum_mysql_timestamp_type time_type;
477
# 658 "mysql/plugin.h"
478
struct __attribute__((aligned(__alignof__(void *)))) st_mysql_value
480
int (* value_type)(struct st_mysql_value *);
481
char const * (* val_str)(struct st_mysql_value *, char * buffer, int * length);
482
int (* val_real)(struct st_mysql_value *, double * realbuf);
483
int (* val_int)(struct st_mysql_value *, long long int * intbuf);
485
# 46 "mysql/plugin.h"
486
struct __attribute__((aligned(__alignof__(long int)))) st_mysql_xid
489
long int gtrid_length;
490
long int bqual_length;
494
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_net
497
unsigned char * buff;
498
unsigned char * buff_end;
499
unsigned char * write_pos;
500
unsigned char * read_pos;
502
unsigned long int remain_in_buf;
503
unsigned long int length;
504
unsigned long int buf_length;
505
unsigned long int where_b;
506
unsigned long int max_packet;
507
unsigned long int max_packet_size;
509
unsigned int compress_pkt_nr;
510
unsigned int write_timeout;
511
unsigned int read_timeout;
512
unsigned int retry_count;
514
unsigned int * return_status;
515
unsigned char reading_or_writing;
521
unsigned char * unused;
522
unsigned int last_errno;
526
char last_error[512];
527
char sqlstate[(5 + 1)];
531
struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(void *)))) st_typelib
535
char const * * type_names;
536
unsigned int * type_lengths;
539
struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(void *)))) st_udf_args
541
unsigned int arg_count;
542
enum Item_result * arg_type;
544
unsigned long int * lengths;
547
unsigned long int * attribute_lengths;
551
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(void *)))) st_udf_init
554
unsigned int decimals;
555
unsigned long int max_length;
561
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned int)))) st_used_mem
563
struct st_used_mem * next;
577
enum enum_cursor_type
579
CURSOR_TYPE_NO_CURSOR = 0,
580
CURSOR_TYPE_READ_ONLY = 1,
581
CURSOR_TYPE_FOR_UPDATE = 2,
582
CURSOR_TYPE_SCROLLABLE = 4,
585
enum enum_field_types
587
MYSQL_TYPE_DECIMAL = 0,
589
MYSQL_TYPE_SHORT = 2,
591
MYSQL_TYPE_FLOAT = 4,
592
MYSQL_TYPE_DOUBLE = 5,
594
MYSQL_TYPE_TIMESTAMP = 7,
595
MYSQL_TYPE_LONGLONG = 8,
596
MYSQL_TYPE_INT24 = 9,
597
MYSQL_TYPE_DATE = 10,
598
MYSQL_TYPE_TIME = 11,
599
MYSQL_TYPE_DATETIME = 12,
600
MYSQL_TYPE_YEAR = 13,
601
MYSQL_TYPE_NEWDATE = 14,
602
MYSQL_TYPE_VARCHAR = 15,
604
MYSQL_TYPE_NEWDECIMAL = 246,
605
MYSQL_TYPE_ENUM = 247,
606
MYSQL_TYPE_SET = 248,
607
MYSQL_TYPE_TINY_BLOB = 249,
608
MYSQL_TYPE_MEDIUM_BLOB = 250,
609
MYSQL_TYPE_LONG_BLOB = 251,
610
MYSQL_TYPE_BLOB = 252,
611
MYSQL_TYPE_VAR_STRING = 253,
612
MYSQL_TYPE_STRING = 254,
613
MYSQL_TYPE_GEOMETRY = 255,
615
# 455 "mysql/plugin.h"
616
enum enum_ft_token_type
620
FT_TOKEN_LEFT_PAREN = 2,
621
FT_TOKEN_RIGHT_PAREN = 3,
622
FT_TOKEN_STOPWORD = 4,
624
# 407 "mysql/plugin.h"
625
enum enum_ftparser_mode
627
MYSQL_FTPARSER_SIMPLE_MODE = 0,
628
MYSQL_FTPARSER_WITH_STOPWORDS = 1,
629
MYSQL_FTPARSER_FULL_BOOLEAN_INFO = 2,
632
enum enum_mysql_set_option
634
MYSQL_OPTION_MULTI_STATEMENTS_ON = 0,
635
MYSQL_OPTION_MULTI_STATEMENTS_OFF = 1,
637
# 109 "mysql/plugin.h"
638
enum enum_mysql_show_type
652
enum enum_mysql_stmt_state
654
MYSQL_STMT_INIT_DONE = 1,
655
MYSQL_STMT_PREPARE_DONE = 2,
656
MYSQL_STMT_EXECUTE_DONE = 3,
657
MYSQL_STMT_FETCH_DONE = 4,
660
enum enum_mysql_timestamp_type
662
MYSQL_TIMESTAMP_NONE = -(2),
663
MYSQL_TIMESTAMP_ERROR = -(1),
664
MYSQL_TIMESTAMP_DATE = 0,
665
MYSQL_TIMESTAMP_DATETIME = 1,
666
MYSQL_TIMESTAMP_TIME = 2,
669
enum enum_server_command
681
COM_PROCESS_INFO = 10,
683
COM_PROCESS_KILL = 12,
687
COM_DELAYED_INSERT = 16,
688
COM_CHANGE_USER = 17,
689
COM_BINLOG_DUMP = 18,
691
COM_CONNECT_OUT = 20,
692
COM_REGISTER_SLAVE = 21,
693
COM_STMT_PREPARE = 22,
694
COM_STMT_EXECUTE = 23,
695
COM_STMT_SEND_LONG_DATA = 24,
704
enum enum_stmt_attr_type
706
STMT_ATTR_UPDATE_MAX_LENGTH = 0,
707
STMT_ATTR_CURSOR_TYPE = 1,
708
STMT_ATTR_PREFETCH_ROWS = 2,
711
enum mysql_enum_shutdown_level
713
SHUTDOWN_DEFAULT = 0,
714
SHUTDOWN_WAIT_CONNECTIONS = (unsigned char)((1 << 0)),
715
SHUTDOWN_WAIT_TRANSACTIONS = (unsigned char)((1 << 1)),
716
SHUTDOWN_WAIT_UPDATES = (unsigned char)((1 << 3)),
717
SHUTDOWN_WAIT_ALL_BUFFERS = ((unsigned char)((1 << 3)) << 1),
718
SHUTDOWN_WAIT_CRITICAL_BUFFERS = (((unsigned char)((1 << 3)) << 1) + 1),
719
KILL_CONNECTION = 255,
724
MYSQL_OPT_CONNECT_TIMEOUT = 0,
725
MYSQL_OPT_COMPRESS = 1,
726
MYSQL_OPT_NAMED_PIPE = 2,
727
MYSQL_INIT_COMMAND = 3,
728
MYSQL_READ_DEFAULT_FILE = 4,
729
MYSQL_READ_DEFAULT_GROUP = 5,
730
MYSQL_SET_CHARSET_DIR = 6,
731
MYSQL_SET_CHARSET_NAME = 7,
732
MYSQL_OPT_LOCAL_INFILE = 8,
733
MYSQL_OPT_PROTOCOL = 9,
734
MYSQL_SHARED_MEMORY_BASE_NAME = 10,
735
MYSQL_OPT_READ_TIMEOUT = 11,
736
MYSQL_OPT_WRITE_TIMEOUT = 12,
737
MYSQL_OPT_USE_RESULT = 13,
738
MYSQL_OPT_USE_REMOTE_CONNECTION = 14,
739
MYSQL_OPT_USE_EMBEDDED_CONNECTION = 15,
740
MYSQL_OPT_GUESS_CONNECTION = 16,
741
MYSQL_SET_CLIENT_IP = 17,
742
MYSQL_SECURE_AUTH = 18,
743
MYSQL_REPORT_DATA_TRUNCATION = 19,
744
MYSQL_OPT_RECONNECT = 20,
745
MYSQL_OPT_SSL_VERIFY_SERVER_CERT = 21,
748
enum mysql_protocol_type
750
MYSQL_PROTOCOL_DEFAULT = 0,
751
MYSQL_PROTOCOL_TCP = 1,
752
MYSQL_PROTOCOL_SOCKET = 2,
753
MYSQL_PROTOCOL_PIPE = 3,
754
MYSQL_PROTOCOL_MEMORY = 4,
759
MYSQL_STATUS_READY = 0,
760
MYSQL_STATUS_GET_RESULT = 1,
761
MYSQL_STATUS_USE_RESULT = 2,
764
extern my_bool check_scramble(char const * reply, char const * message, unsigned char const * hash_stage2);
766
extern my_bool check_scramble_323(char const *, char const * message, unsigned long int * salt);
768
extern TYPELIB * copy_typelib(MEM_ROOT * root, TYPELIB * from);
770
extern void create_random_string(char * to, unsigned int, struct rand_struct * rand_st);
772
extern int find_type(char * x, TYPELIB const * typelib, unsigned int);
774
extern int find_type_or_exit(char const * x, TYPELIB * typelib, char const * option);
776
extern my_ulonglong find_typeset(char * x, TYPELIB * typelib, int * error_position);
778
extern void get_salt_from_password(unsigned char * res, char const * password);
780
extern void get_salt_from_password_323(unsigned long int * res, char const * password);
782
extern char * get_tty_password(char const * opt_message);
784
extern char const * get_type(TYPELIB * typelib, unsigned int);
786
extern void hash_password(unsigned long int * to, char const * password, unsigned int);
788
extern LIST * list_add(LIST * root, LIST * element);
790
extern LIST * list_cons(void * data, LIST * root);
792
extern LIST * list_delete(LIST * root, LIST * element);
794
extern void list_free(LIST * root, unsigned int);
796
extern unsigned int list_length(LIST *);
798
extern LIST * list_reverse(LIST * root);
800
extern int list_walk(LIST *, list_walk_action, unsigned char * argument);
802
extern void make_password_from_salt(char * to, unsigned char const * hash_stage2);
804
extern void make_password_from_salt_323(char * to, unsigned long int const * salt);
806
extern void make_scrambled_password(char * to, char const * password);
808
extern void make_scrambled_password_323(char * to, char const * password);
810
extern void make_type(char * to, unsigned int, TYPELIB * typelib);
812
extern int my_connect(my_socket, struct sockaddr const * name, unsigned int, unsigned int);
814
extern my_bool my_net_init(NET * net, Vio * vio);
816
extern void my_net_local_init(NET * net);
818
extern unsigned long int my_net_read(NET * net);
820
extern my_bool my_net_write(NET * net, unsigned char const * packet, size_t);
822
extern double my_rnd(struct rand_struct *);
824
extern void my_thread_end(void);
826
extern my_bool my_thread_init(void);
828
extern void myodbc_remove_escape(MYSQL * mysql, char * name);
830
extern my_ulonglong mysql_affected_rows(MYSQL * mysql);
832
extern my_bool mysql_autocommit(MYSQL * mysql, my_bool);
834
extern my_bool mysql_change_user(MYSQL * mysql, char const * user, char const * passwd, char const * db);
836
extern char const * mysql_character_set_name(MYSQL * mysql);
838
extern void mysql_close(MYSQL * sock);
840
extern my_bool mysql_commit(MYSQL * mysql);
842
extern void mysql_data_seek(MYSQL_RES * result, my_ulonglong);
844
extern void mysql_debug(char const * debug);
846
extern int mysql_dump_debug_info(MYSQL * mysql);
848
extern my_bool mysql_embedded(void);
850
extern my_bool mysql_eof(MYSQL_RES * res);
852
extern unsigned int mysql_errno(MYSQL * mysql);
854
extern char const * mysql_errno_to_sqlstate(unsigned int);
856
extern char const * mysql_error(MYSQL * mysql);
858
extern unsigned long int mysql_escape_string(char * to, char const * from, unsigned long int);
860
extern MYSQL_FIELD * mysql_fetch_field(MYSQL_RES * result);
862
extern MYSQL_FIELD * mysql_fetch_field_direct(MYSQL_RES * res, unsigned int);
864
extern MYSQL_FIELD * mysql_fetch_fields(MYSQL_RES * res);
866
extern unsigned long int * mysql_fetch_lengths(MYSQL_RES * result);
868
extern MYSQL_ROW mysql_fetch_row(MYSQL_RES * result);
870
extern unsigned int mysql_field_count(MYSQL * mysql);
872
extern MYSQL_FIELD_OFFSET mysql_field_seek(MYSQL_RES * result, MYSQL_FIELD_OFFSET);
874
extern MYSQL_FIELD_OFFSET mysql_field_tell(MYSQL_RES * res);
876
extern void mysql_free_result(MYSQL_RES * result);
878
extern void mysql_get_character_set_info(MYSQL * mysql, MY_CHARSET_INFO * charset);
880
extern char const * mysql_get_client_info(void);
882
extern unsigned long int mysql_get_client_version(void);
884
extern char const * mysql_get_host_info(MYSQL * mysql);
886
extern MYSQL_PARAMETERS * mysql_get_parameters(void);
888
extern unsigned int mysql_get_proto_info(MYSQL * mysql);
890
extern char const * mysql_get_server_info(MYSQL * mysql);
892
extern unsigned long int mysql_get_server_version(MYSQL * mysql);
894
extern char const * mysql_get_ssl_cipher(MYSQL * mysql);
896
extern unsigned long int mysql_hex_string(char * to, char const * from, unsigned long int);
898
extern char const * mysql_info(MYSQL * mysql);
900
extern MYSQL * mysql_init(MYSQL * mysql);
902
extern my_ulonglong mysql_insert_id(MYSQL * mysql);
904
extern int mysql_kill(MYSQL * mysql, unsigned long int);
906
extern MYSQL_RES * mysql_list_dbs(MYSQL * mysql, char const * wild);
908
extern MYSQL_RES * mysql_list_fields(MYSQL * mysql, char const * table, char const * wild);
910
extern MYSQL_RES * mysql_list_processes(MYSQL * mysql);
912
extern MYSQL_RES * mysql_list_tables(MYSQL * mysql, char const * wild);
914
extern my_bool mysql_more_results(MYSQL * mysql);
916
extern int mysql_next_result(MYSQL * mysql);
918
extern unsigned int mysql_num_fields(MYSQL_RES * res);
920
extern my_ulonglong mysql_num_rows(MYSQL_RES * res);
922
extern int mysql_options(MYSQL * mysql, enum mysql_option, void const * arg);
924
extern int mysql_ping(MYSQL * mysql);
926
extern unsigned int mysql_port;
928
extern int mysql_query(MYSQL * mysql, char const * q);
929
# 790 "mysql/plugin.h"
930
extern void mysql_query_cache_invalidate4(void * thd, char const * key, unsigned int, int);
932
extern my_bool mysql_read_query_result(MYSQL * mysql);
934
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);
936
extern unsigned long int mysql_real_escape_string(MYSQL * mysql, char * to, char const * from, unsigned long int);
938
extern int mysql_real_query(MYSQL * mysql, char const * q, unsigned long int);
940
extern int mysql_refresh(MYSQL * mysql, unsigned int);
942
extern my_bool mysql_rollback(MYSQL * mysql);
944
extern MYSQL_ROW_OFFSET mysql_row_seek(MYSQL_RES * result, MYSQL_ROW_OFFSET);
946
extern MYSQL_ROW_OFFSET mysql_row_tell(MYSQL_RES * res);
948
extern int mysql_select_db(MYSQL * mysql, char const * db);
950
extern int mysql_send_query(MYSQL * mysql, char const * q, unsigned long int);
952
extern void mysql_server_end(void);
954
extern int mysql_server_init(int, char * * argv, char * * groups);
956
extern int mysql_set_character_set(MYSQL * mysql, char const * csname);
958
extern void mysql_set_local_infile_default(MYSQL * mysql);
960
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 *);
962
extern int mysql_set_server_option(MYSQL * mysql, enum enum_mysql_set_option);
964
extern int mysql_shutdown(MYSQL * mysql, enum mysql_enum_shutdown_level);
966
extern char const * mysql_sqlstate(MYSQL * mysql);
968
extern my_bool mysql_ssl_set(MYSQL * mysql, char const * key, char const * cert, char const * ca, char const * capath, char const * cipher);
970
extern char const * mysql_stat(MYSQL * mysql);
972
extern my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
974
extern my_bool mysql_stmt_attr_get(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void * attr);
976
extern my_bool mysql_stmt_attr_set(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void const * attr);
978
extern my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
980
extern my_bool mysql_stmt_bind_result(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
982
extern my_bool mysql_stmt_close(MYSQL_STMT * stmt);
984
extern void mysql_stmt_data_seek(MYSQL_STMT * stmt, my_ulonglong);
986
extern unsigned int mysql_stmt_errno(MYSQL_STMT * stmt);
988
extern char const * mysql_stmt_error(MYSQL_STMT * stmt);
990
extern int mysql_stmt_execute(MYSQL_STMT * stmt);
992
extern int mysql_stmt_fetch(MYSQL_STMT * stmt);
994
extern int mysql_stmt_fetch_column(MYSQL_STMT * stmt, MYSQL_BIND * bind_arg, unsigned int, unsigned long int);
996
extern unsigned int mysql_stmt_field_count(MYSQL_STMT * stmt);
998
extern my_bool mysql_stmt_free_result(MYSQL_STMT * stmt);
1000
extern MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);
1002
extern my_ulonglong mysql_stmt_insert_id(MYSQL_STMT * stmt);
1004
extern my_ulonglong mysql_stmt_num_rows(MYSQL_STMT * stmt);
1006
extern unsigned long int mysql_stmt_param_count(MYSQL_STMT * stmt);
1008
extern MYSQL_RES * mysql_stmt_param_metadata(MYSQL_STMT * stmt);
1010
extern int mysql_stmt_prepare(MYSQL_STMT * stmt, char const * query, unsigned long int);
1012
extern my_bool mysql_stmt_reset(MYSQL_STMT * stmt);
1014
extern MYSQL_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);
1016
extern MYSQL_ROW_OFFSET mysql_stmt_row_seek(MYSQL_STMT * stmt, MYSQL_ROW_OFFSET);
1018
extern MYSQL_ROW_OFFSET mysql_stmt_row_tell(MYSQL_STMT * stmt);
1020
extern my_bool mysql_stmt_send_long_data(MYSQL_STMT * stmt, unsigned int, char const * data, unsigned long int);
1022
extern char const * mysql_stmt_sqlstate(MYSQL_STMT * stmt);
1024
extern int mysql_stmt_store_result(MYSQL_STMT * stmt);
1026
extern MYSQL_RES * mysql_store_result(MYSQL * mysql);
1028
extern void mysql_thread_end(void);
1030
extern unsigned long int mysql_thread_id(MYSQL * mysql);
1032
extern my_bool mysql_thread_init(void);
1034
extern unsigned int mysql_thread_safe(void);
1035
# 699 "mysql/plugin.h"
1036
extern int mysql_tmpfile(char const * prefix);
1038
extern char * mysql_unix_port;
1040
extern MYSQL_RES * mysql_use_result(MYSQL * mysql);
1042
extern unsigned int mysql_warning_count(MYSQL * mysql);
1044
extern void net_clear(NET * net, my_bool);
1046
extern void net_end(NET * net);
1048
extern my_bool net_flush(NET * net);
1050
extern int net_real_write(NET * net, unsigned char const * packet, size_t);
1052
extern my_bool net_realloc(NET * net, size_t);
1054
extern my_bool net_write_command(NET * net, unsigned char, unsigned char const * header, size_t, unsigned char const * packet, size_t);
1056
extern char * octet2hex(char * to, char const * str, unsigned int);
1058
extern void randominit(struct rand_struct *, unsigned long int, unsigned long int);
1060
extern void scramble(char * to, char const * message, char const * password);
1062
extern void scramble_323(char * to, char const * message, char const * password);
1064
extern TYPELIB sql_protocol_typelib;
1065
# 739 "mysql/plugin.h"
1066
extern void * thd_alloc(void * thd, unsigned int);
1067
# 743 "mysql/plugin.h"
1068
extern void * thd_calloc(void * thd, unsigned int);
1069
# 724 "mysql/plugin.h"
1070
extern unsigned long int thd_get_thread_id(void const * thd);
1071
# 780 "mysql/plugin.h"
1072
extern void thd_get_xid(void const * thd, MYSQL_XID * xid);
1073
# 680 "mysql/plugin.h"
1074
extern void * * thd_ha_data(void const * thd, struct handlerton const * hton);
1075
# 675 "mysql/plugin.h"
1076
extern int thd_in_lock_tables(void const * thd);
1077
# 685 "mysql/plugin.h"
1078
extern void thd_inc_row_count(void);
1079
# 715 "mysql/plugin.h"
1080
extern int thd_killed(void const * thd);
1081
# 770 "mysql/plugin.h"
1082
extern MYSQL_LEX_STRING * thd_make_lex_string(void * thd, MYSQL_LEX_STRING * lex_str, char const * str, unsigned int, int);
1083
# 755 "mysql/plugin.h"
1084
extern void * thd_memdup(void * thd, void const * str, unsigned int);
1085
# 679 "mysql/plugin.h"
1086
extern char const * thd_proc_info(void * thd, char const * info);
1087
# 682 "mysql/plugin.h"
1088
extern char * thd_security_context(void * thd, char * buffer, unsigned int, unsigned int);
1089
# 678 "mysql/plugin.h"
1090
extern int thd_sql_command(void const * thd);
1091
# 747 "mysql/plugin.h"
1092
extern char * thd_strdup(void * thd, char const * str);
1093
# 751 "mysql/plugin.h"
1094
extern char * thd_strmake(void * thd, char const * str, unsigned int);
1095
# 676 "mysql/plugin.h"
1096
extern int thd_tablespace_op(void const * thd);
1097
# 677 "mysql/plugin.h"
1098
extern long long int thd_test_options(void const * thd, long long int);
1099
# 681 "mysql/plugin.h"
1100
extern int thd_tx_isolation(void const * thd);