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