MySQL 9.0.0
Source Code Documentation
plugin_audit_message_types.h
Go to the documentation of this file.
1/* Copyright (c) 2018, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15Without limiting anything contained in the foregoing, this file,
16which is part of C Driver for MySQL (Connector/C), is also subject to the
17Universal FOSS Exception, version 1.0, a copy of which can be found at
18http://oss.oracle.com/licenses/universal-foss-exception.
19
20This program is distributed in the hope that it will be useful,
21but WITHOUT ANY WARRANTY; without even the implied warranty of
22MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23GNU General Public License, version 2.0, for more details.
24
25You should have received a copy of the GNU General Public License
26along with this program; if not, write to the Free Software
27Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
28
29#ifndef PLUGIN_AUDIT_MESSAGE_TYPES_H
30#define PLUGIN_AUDIT_MESSAGE_TYPES_H
31
32#ifndef MYSQL_ABI_CHECK
34#endif
35
36/**
37 @enum mysql_event_message_subclass_t
38
39 Events for MYSQL_AUDIT_MESSAGE_CLASS event class.
40*/
41typedef enum {
42 /** Internally generated message. */
44 /** User generated message. */
47
48/**
49 @enum mysql_event_message_value_type_t
50
51 Type of the value element of the key-value pair.
52*/
53typedef enum {
54 /** Value is of the string type. */
56 /** Value is of the numeric type. */
59
60/**
61 Structure that stores key-value pair of the MYSQL_AUDIT_MESSAGE_CLASS
62 event class.
63*/
64typedef struct {
65 /** Key element. */
67 /** Value element type. */
69 /** Value element. */
70 union {
71 /** String element. */
73 /** Numeric element. */
74 long long num;
75 } value;
77
78#endif /* PLUGIN_AUDIT_MESSAGE_TYPES_H */
mysql_event_message_value_type_t
Type of the value element of the key-value pair.
Definition: plugin_audit_message_types.h:53
@ MYSQL_AUDIT_MESSAGE_VALUE_TYPE_STR
Value is of the string type.
Definition: plugin_audit_message_types.h:55
@ MYSQL_AUDIT_MESSAGE_VALUE_TYPE_NUM
Value is of the numeric type.
Definition: plugin_audit_message_types.h:57
mysql_event_message_subclass_t
Events for MYSQL_AUDIT_MESSAGE_CLASS event class.
Definition: plugin_audit_message_types.h:41
@ MYSQL_AUDIT_MESSAGE_INTERNAL
Internally generated message.
Definition: plugin_audit_message_types.h:43
@ MYSQL_AUDIT_MESSAGE_USER
User generated message.
Definition: plugin_audit_message_types.h:45
Definition: mysql_lex_string.h:40
Structure that stores key-value pair of the MYSQL_AUDIT_MESSAGE_CLASS event class.
Definition: plugin_audit_message_types.h:64
mysql_event_message_value_type_t value_type
Value element type.
Definition: plugin_audit_message_types.h:68
long long num
Numeric element.
Definition: plugin_audit_message_types.h:74
MYSQL_LEX_CSTRING str
String element.
Definition: plugin_audit_message_types.h:72
MYSQL_LEX_CSTRING key
Key element.
Definition: plugin_audit_message_types.h:66