MySQL  8.0.22
Source Code Documentation
task_arg.h
Go to the documentation of this file.
1 /* Copyright (c) 2016, 2020, 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 TASK_ARG_H
24 #define TASK_ARG_H
25 
26 /* Reasonably type-safe parameters to tasks */
27 enum arg_type {
38 };
39 typedef enum arg_type arg_type;
40 
41 struct task_arg {
43  union {
44  int i;
45  long l;
46  unsigned int u_i;
47  unsigned long u_l;
48  unsigned long long u_ll;
49  float f;
50  double d;
51  char const *s;
52  void *v;
53  } val;
54 };
55 typedef struct task_arg task_arg;
56 
57 #endif
void * v
Definition: task_arg.h:52
Definition: task_arg.h:41
arg_type type
Definition: task_arg.h:42
Definition: task_arg.h:31
arg_type
Definition: task_arg.h:27
Definition: task_arg.h:34
long l
Definition: task_arg.h:45
arg_type
Definition: mysqltest.cc:1124
char const * s
Definition: task_arg.h:51
Definition: task_arg.h:29
double d
Definition: task_arg.h:50
union task_arg::@12 val
Definition: task_arg.h:30
Definition: task_arg.h:33
Definition: task_arg.h:32
unsigned long long u_ll
Definition: task_arg.h:48
Definition: task_arg.h:35
int i
Definition: task_arg.h:44
Definition: task_arg.h:36
unsigned int u_i
Definition: task_arg.h:46
Definition: task_arg.h:37
Definition: task_arg.h:28
float f
Definition: task_arg.h:49
unsigned long u_l
Definition: task_arg.h:47