MySQL 9.0.0
Source Code Documentation
audit_api_message_service.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
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef AUDIT_API_MESSAGE_H
25#define AUDIT_API_MESSAGE_H
26
30
31BEGIN_SERVICE_DEFINITION(mysql_audit_api_message)
32
33/**
34 Method that emits Audit API message event.
35
36 @param type Message event type.
37 @param component Component name.
38 @param component_length Component name length.
39 @param producer Producer name.
40 @param producer_length Producer name length.
41 @param message Message.
42 @param message_length Message length.
43 @param key_value_map Key-value map pointer. The function does not
44 perform key values uniqueness.
45 @param key_value_map_length Key-value map length;
46
47 @return This method always generates false no matter, whether the message
48 event is consumed by the audit plugin or not.
49*/
51 const char *component, size_t component_length,
52 const char *producer, size_t producer_length,
53 const char *message, size_t message_length,
55 size_t key_value_map_length));
56
57END_SERVICE_DEFINITION(mysql_audit_api_message)
58
59#endif /* AUDIT_API_MESSAGE_H */
static char * emit(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, unsigned char *null_value, unsigned char *error)
UDF function itself.
Definition: audit_api_message_emit.cc:429
mysql_event_message_subclass_t
Events for MYSQL_AUDIT_MESSAGE_CLASS event class.
Definition: plugin_audit_message_types.h:41
required string type
Definition: replication_group_member_actions.proto:34
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86
#define DECLARE_BOOL_METHOD(name, args)
Declares a method that returns bool as a part of the Service definition.
Definition: service.h:112
Structure that stores key-value pair of the MYSQL_AUDIT_MESSAGE_CLASS event class.
Definition: plugin_audit_message_types.h:64