/
usr
/
include
/
mysql
/
/usr/include/mysql
mkdir
upload
Name
Size
Mode
Actions
mysql/
-
0755
rm
big_endian.h
4931
0644
edit
dl
rm
byte_order_generic.h
5620
0644
edit
dl
rm
byte_order_generic_x86.h
4710
0644
edit
dl
rm
byte_order_generic_x86_64.h
4468
0644
edit
dl
rm
decimal.h
5617
0644
edit
dl
rm
errmsg.h
4721
0644
edit
dl
rm
keycache.h
7502
0644
edit
dl
rm
little_endian.h
4115
0644
edit
dl
rm
mysql.h
29833
0644
edit
dl
rm
mysqld_ername.h
95816
0644
edit
dl
rm
mysqld_error.h
34839
0644
edit
dl
rm
mysql_com.h
24418
0644
edit
dl
rm
mysql_com_server.h
1737
0644
edit
dl
rm
mysql_embed.h
1609
0644
edit
dl
rm
mysql_time.h
2856
0644
edit
dl
rm
mysql_version.h
900
0644
edit
dl
rm
my_alloc.h
2628
0644
edit
dl
rm
my_attribute.h
2512
0644
edit
dl
rm
my_byteorder.h
2683
0644
edit
dl
rm
my_compiler.h
4940
0644
edit
dl
rm
my_config.h
17282
0644
edit
dl
rm
my_dbug.h
8908
0644
edit
dl
rm
my_dir.h
3997
0644
edit
dl
rm
my_getopt.h
6551
0644
edit
dl
rm
my_global.h
33805
0644
edit
dl
rm
my_list.h
2210
0644
edit
dl
rm
my_net.h
2489
0644
edit
dl
rm
my_pthread.h
31745
0644
edit
dl
rm
my_sys.h
41724
0644
edit
dl
rm
my_xml.h
3245
0644
edit
dl
rm
m_ctype.h
33915
0644
edit
dl
rm
m_string.h
9964
0644
edit
dl
rm
plugin.h
24625
0644
edit
dl
rm
plugin_audit.h
4564
0644
edit
dl
rm
plugin_ftparser.h
8013
0644
edit
dl
rm
plugin_validate_password.h
2000
0644
edit
dl
rm
sql_common.h
5403
0644
edit
dl
rm
sql_state.h
13331
0644
edit
dl
rm
sslopt-case.h
2075
0644
edit
dl
rm
sslopt-longopts.h
3090
0644
edit
dl
rm
sslopt-vars.h
1912
0644
edit
dl
rm
typelib.h
2986
0644
edit
dl
rm
Edit:
/usr/include/mysql/plugin_audit.h
(4564B)
/* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including but not limited to OpenSSL) that is licensed under separate terms, as designated in a particular file or component or in included license documentation. The authors of MySQL hereby grant you an additional permission to link the program and your derivative works with the separately licensed software that they have included with MySQL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0, for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _my_audit_h #define _my_audit_h /************************************************************************* API for Audit plugin. (MYSQL_AUDIT_PLUGIN) */ #include "plugin.h" #define MYSQL_AUDIT_CLASS_MASK_SIZE 1 #define MYSQL_AUDIT_INTERFACE_VERSION 0x0301 /************************************************************************* AUDIT CLASS : GENERAL LOG events occurs before emitting to the general query log. ERROR events occur before transmitting errors to the user. RESULT events occur after transmitting a resultset to the user. STATUS events occur after transmitting a resultset or errors to the user. */ #define MYSQL_AUDIT_GENERAL_CLASS 0 #define MYSQL_AUDIT_GENERAL_CLASSMASK (1 << MYSQL_AUDIT_GENERAL_CLASS) #define MYSQL_AUDIT_GENERAL_LOG 0 #define MYSQL_AUDIT_GENERAL_ERROR 1 #define MYSQL_AUDIT_GENERAL_RESULT 2 #define MYSQL_AUDIT_GENERAL_STATUS 3 struct mysql_event_general { unsigned int event_subclass; int general_error_code; unsigned long general_thread_id; const char *general_user; unsigned int general_user_length; const char *general_command; unsigned int general_command_length; const char *general_query; unsigned int general_query_length; struct charset_info_st *general_charset; unsigned long long general_time; unsigned long long general_rows; MYSQL_LEX_STRING general_host; MYSQL_LEX_STRING general_sql_command; MYSQL_LEX_STRING general_external_user; MYSQL_LEX_STRING general_ip; }; /* AUDIT CLASS : CONNECTION CONNECT occurs after authentication phase is completed. DISCONNECT occurs after connection is terminated. CHANGE_USER occurs after COM_CHANGE_USER RPC is completed. */ #define MYSQL_AUDIT_CONNECTION_CLASS 1 #define MYSQL_AUDIT_CONNECTION_CLASSMASK (1 << MYSQL_AUDIT_CONNECTION_CLASS) #define MYSQL_AUDIT_CONNECTION_CONNECT 0 #define MYSQL_AUDIT_CONNECTION_DISCONNECT 1 #define MYSQL_AUDIT_CONNECTION_CHANGE_USER 2 struct mysql_event_connection { unsigned int event_subclass; int status; unsigned long thread_id; const char *user; unsigned int user_length; const char *priv_user; unsigned int priv_user_length; const char *external_user; unsigned int external_user_length; const char *proxy_user; unsigned int proxy_user_length; const char *host; unsigned int host_length; const char *ip; unsigned int ip_length; const char *database; unsigned int database_length; }; /************************************************************************* Here we define the descriptor structure, that is referred from st_mysql_plugin. release_thd() event occurs when the event class consumer is to be disassociated from the specified THD. This would typically occur before some operation which may require sleeping - such as when waiting for the next query from the client. event_notify() is invoked whenever an event occurs which is of any class for which the plugin has interest. The second argument indicates the specific event class and the third argument is data as required for that class. class_mask is an array of bits used to indicate what event classes that this plugin wants to receive. */ struct st_mysql_audit { int interface_version; void (*release_thd)(MYSQL_THD); void (*event_notify)(MYSQL_THD, unsigned int, const void *); unsigned long class_mask[MYSQL_AUDIT_CLASS_MASK_SIZE]; }; #endif
Save
cmd:
run