MySQL 8.3.0
Source Code Documentation
event_tracking_lifecycle_defs.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 2023, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_LIFECYCLE_DEFS_H
24#define COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_LIFECYCLE_DEFS_H
25
26/**
27 @file mysql/components/services/defs/event_tracking_lifecycle_defs.h
28 Data for program lifecycle events
29*/
30
31/** Occurs after all subsystem are initialized during system start. */
32#define EVENT_TRACKING_STARTUP_STARTUP (1 << 0)
33
34#define EVENT_TRACKING_STARTUP_ALL EVENT_TRACKING_STARTUP_STARTUP
35
36/**
37 @typedef mysql_event_tracking_startup_subclass_t
38
39 Events for Startup event tracking.
40*/
42
43/**
44 @struct mysql_event_tracking_startup_data
45
46 Structure for Startup event tracking.
47*/
49 /** Event subclass. */
51 /** Command line arguments. */
52 const char **argv;
53 /** Command line arguments count. */
54 unsigned int argc;
55};
56
57/** Occurs when global variable is set. */
58#define EVENT_TRACKING_SHUTDOWN_SHUTDOWN (1 << 0)
59
60#define EVENT_TRACKING_SHUTDOWN_ALL EVENT_TRACKING_SHUTDOWN_SHUTDOWN
61
62/**
63 @typedef mysql_event_tracking_shutdown_subclass_t
64
65 Events for Shutdown event tracking.
66*/
68
69/** User requested shut down. */
70#define EVENT_TRACKING_SHUTDOWN_REASON_SHUTDOWN (1 << 0)
71/** The server aborts. */
72#define EVENT_TRACKING_SHUTDOWN_REASON_ABORT (1 << 1)
73
74/**
75 @typedef mysql_event_tracking_shutdown_reason_t
76
77 Server shutdown reason.
78*/
80
81/**
82 @struct mysql_event_tracking_shutdown_data
83
84 Structure for Shutdown event tracking.
85*/
87 /** Shutdown event. */
89 /** Exit code associated with the shutdown event. */
91 /** Shutdown reason. */
93};
94
95#endif // !COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_LIFECYCLE_DEFS_H
unsigned long mysql_event_tracking_shutdown_subclass_t
Events for Shutdown event tracking.
Definition: event_tracking_lifecycle_defs.h:67
unsigned long mysql_event_tracking_startup_subclass_t
Events for Startup event tracking.
Definition: event_tracking_lifecycle_defs.h:41
int mysql_event_tracking_shutdown_reason_t
Server shutdown reason.
Definition: event_tracking_lifecycle_defs.h:79
Structure for Shutdown event tracking.
Definition: event_tracking_lifecycle_defs.h:86
int exit_code
Exit code associated with the shutdown event.
Definition: event_tracking_lifecycle_defs.h:90
mysql_event_tracking_shutdown_subclass_t event_subclass
Shutdown event.
Definition: event_tracking_lifecycle_defs.h:88
mysql_event_tracking_shutdown_reason_t reason
Shutdown reason.
Definition: event_tracking_lifecycle_defs.h:92
Structure for Startup event tracking.
Definition: event_tracking_lifecycle_defs.h:48
unsigned int argc
Command line arguments count.
Definition: event_tracking_lifecycle_defs.h:54
const char ** argv
Command line arguments.
Definition: event_tracking_lifecycle_defs.h:52
mysql_event_tracking_startup_subclass_t event_subclass
Event subclass.
Definition: event_tracking_lifecycle_defs.h:50