MySQL 9.1.0
Source Code Documentation
event_tracking_lifecycle_defs.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_LIFECYCLE_DEFS_H
25#define COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_LIFECYCLE_DEFS_H
26
27/**
28 @file mysql/components/services/defs/event_tracking_lifecycle_defs.h
29 Data for program lifecycle events
30*/
31
32/** Occurs after all subsystem are initialized during system start. */
33#define EVENT_TRACKING_STARTUP_STARTUP (1 << 0)
34
35#define EVENT_TRACKING_STARTUP_ALL EVENT_TRACKING_STARTUP_STARTUP
36
37/**
38 @typedef mysql_event_tracking_startup_subclass_t
39
40 Events for Startup event tracking.
41*/
43
44/**
45 @struct mysql_event_tracking_startup_data
46
47 Structure for Startup event tracking.
48*/
50 /** Event subclass. */
52 /** Command line arguments. */
53 const char **argv;
54 /** Command line arguments count. */
55 unsigned int argc;
56};
57
58/** Occurs when global variable is set. */
59#define EVENT_TRACKING_SHUTDOWN_SHUTDOWN (1 << 0)
60
61#define EVENT_TRACKING_SHUTDOWN_ALL EVENT_TRACKING_SHUTDOWN_SHUTDOWN
62
63/**
64 @typedef mysql_event_tracking_shutdown_subclass_t
65
66 Events for Shutdown event tracking.
67*/
69
70/** User requested shut down. */
71#define EVENT_TRACKING_SHUTDOWN_REASON_SHUTDOWN (1 << 0)
72/** The server aborts. */
73#define EVENT_TRACKING_SHUTDOWN_REASON_ABORT (1 << 1)
74
75/**
76 @typedef mysql_event_tracking_shutdown_reason_t
77
78 Server shutdown reason.
79*/
81
82/**
83 @struct mysql_event_tracking_shutdown_data
84
85 Structure for Shutdown event tracking.
86*/
88 /** Shutdown event. */
90 /** Exit code associated with the shutdown event. */
92 /** Shutdown reason. */
94};
95
96#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:68
unsigned long mysql_event_tracking_startup_subclass_t
Events for Startup event tracking.
Definition: event_tracking_lifecycle_defs.h:42
int mysql_event_tracking_shutdown_reason_t
Server shutdown reason.
Definition: event_tracking_lifecycle_defs.h:80
Structure for Shutdown event tracking.
Definition: event_tracking_lifecycle_defs.h:87
int exit_code
Exit code associated with the shutdown event.
Definition: event_tracking_lifecycle_defs.h:91
mysql_event_tracking_shutdown_subclass_t event_subclass
Shutdown event.
Definition: event_tracking_lifecycle_defs.h:89
mysql_event_tracking_shutdown_reason_t reason
Shutdown reason.
Definition: event_tracking_lifecycle_defs.h:93
Structure for Startup event tracking.
Definition: event_tracking_lifecycle_defs.h:49
unsigned int argc
Command line arguments count.
Definition: event_tracking_lifecycle_defs.h:55
const char ** argv
Command line arguments.
Definition: event_tracking_lifecycle_defs.h:53
mysql_event_tracking_startup_subclass_t event_subclass
Event subclass.
Definition: event_tracking_lifecycle_defs.h:51