]> git.ipfire.org Git - thirdparty/glibc.git/blob - elf/dl-tunable-types.h
Update copyright dates not handled by scripts/update-copyrights.
[thirdparty/glibc.git] / elf / dl-tunable-types.h
1 /* Tunable type information.
2
3 Copyright (C) 2016-2017 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20 #ifndef _TUNABLE_TYPES_H_
21 # define _TUNABLE_TYPES_H_
22 #include <stddef.h>
23
24 typedef void (*tunable_callback_t) (void *);
25
26 typedef enum
27 {
28 TUNABLE_TYPE_INT_32,
29 TUNABLE_TYPE_SIZE_T,
30 TUNABLE_TYPE_STRING
31 } tunable_type_code_t;
32
33 typedef struct
34 {
35 tunable_type_code_t type_code;
36 int64_t min;
37 int64_t max;
38 } tunable_type_t;
39
40 typedef union
41 {
42 int64_t numval;
43 const char *strval;
44 } tunable_val_t;
45
46 #endif