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