MySQL  8.0.17
Source Code Documentation
status_var.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
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 status_var_h
24 #define status_var_h
25 
26 /**
27  Declarations for SHOW STATUS support in plugins
28 */
32  SHOW_INT, ///< shown as _unsigned_ int
33  SHOW_LONG, ///< shown as _unsigned_ long
34  SHOW_LONGLONG, ///< shown as _unsigned_ longlong
40  /*
41  This include defines server-only values of the enum.
42  Using them in plugins is not supported.
43  */
55  /*
56  Support for signed values are extended for plugins.
57  */
61 };
62 
63 /**
64  Status variable scope.
65  Only GLOBAL status variable scope is available in plugins.
66 */
70  /* Server-only values. Not supported in plugins. */
73 };
74 
75 /**
76  SHOW STATUS Server status variable
77 */
78 struct SHOW_VAR {
79  const char *name;
80  char *value;
83 };
84 
85 #define SHOW_VAR_MAX_NAME_LEN 64
86 #define SHOW_VAR_FUNC_BUFF_SIZE 1024
87 #ifdef __cplusplus
88 class THD;
89 #define MYSQL_THD THD *
90 #else
91 #define MYSQL_THD void *
92 #endif
93 typedef int (*mysql_show_var_func)(MYSQL_THD, SHOW_VAR *, char *);
94 
95 #endif
int(* mysql_show_var_func)(MYSQL_THD, SHOW_VAR *, char *)
Definition: status_var.h:93
Definition: status_var.h:72
Definition: status_var.h:47
shown as unsigned int
Definition: status_var.h:32
Definition: status_var.h:37
Definition: status_var.h:71
shown as unsigned long
Definition: status_var.h:33
Definition: status_var.h:39
#define MYSQL_THD
Definition: status_var.h:89
Definition: status_var.h:51
enum_mysql_show_type
Declarations for SHOW STATUS support in plugins.
Definition: status_var.h:29
Definition: status_var.h:59
Definition: status_var.h:68
Definition: status_var.h:38
Definition: status_var.h:60
Definition: status_var.h:36
Definition: status_var.h:35
Definition: status_var.h:30
Definition: status_var.h:52
SHOW STATUS Server status variable.
Definition: status_var.h:78
const char * name
Definition: status_var.h:79
Definition: status_var.h:31
Definition: status_var.h:54
Definition: status_var.h:49
Definition: status_var.h:50
Definition: status_var.h:69
enum enum_mysql_show_scope scope
Definition: status_var.h:82
Definition: status_var.h:46
Definition: status_var.h:53
char * value
Definition: status_var.h:80
Definition: status_var.h:48
enum enum_mysql_show_type type
Definition: status_var.h:81
enum_mysql_show_scope
Status variable scope.
Definition: status_var.h:67
Definition: status_var.h:58
shown as unsigned longlong
Definition: status_var.h:34
Definition: status_var.h:45
Definition: status_var.h:44
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_class.h:777