MySQL 8.0.40
Source Code Documentation
audit_api_message_service_imp.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_IMP_H
25#define AUDIT_API_IMP_H
26
29
30/**
31 @class mysql_audit_api_imp
32
33 Audit API service implementation.
34*/
36 public:
37 /**
38 Method that generates Audit API message event.
39
40 @param type Message event type.
41 @param component Component name.
42 @param component_length Component name length.
43 @param producer Producer name.
44 @param producer_length Producer name length.
45 @param message Message.
46 @param message_length Message length.
47 @param key_value_map Key-value map pointer. The function does not
48 perform key values uniqueness.
49 @param key_value_map_length Key-value map length.
50
51 @return This method always returns false. The service is using underlying
52 Audit API function that do not allow to distinguish, whether the
53 audit log plugin has been called or not.
54 */
57 const char *component, size_t component_length,
58 const char *producer, size_t producer_length,
59 const char *message, size_t message_length,
61 size_t key_value_map_length));
62};
63
64#endif /* AUDIT_API_IMP_H */
Definition: audit_api_message_service_imp.h:35
static mysql_service_status_t emit(mysql_event_message_subclass_t type, const char *component, size_t component_length, const char *producer, size_t producer_length, const char *message, size_t message_length, mysql_event_message_key_value_t *key_value_map, size_t key_value_map_length) noexcept
Method that generates Audit API message event.
Definition: audit_api_message_service_imp.cc:35
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
Specifies macros to define Service Implementations.
#define DEFINE_BOOL_METHOD(name, args)
A short macro to define method that returns bool, which is the most common case.
Definition: service_implementation.h:88
Structure that stores key-value pair of the MYSQL_AUDIT_MESSAGE_CLASS event class.
Definition: plugin_audit_message_types.h:64