| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Classes | Macros
params.h File Reference

Go to the source code of this file.

## Classes
struct | enum_val_t

## Macros
#define | VS_LIST_TO_ENUM_VAL_T_ARRAY_STATIC( array_name, new_array_name) static _EV_ARRAY_XXX(array_name, new_array_name, _VALUE_STRING_LIST, _EV_ARRAY_ENTRY_FROM_VS)
#define | VS_LIST_TO_ENUM_VAL_T_ARRAY_GLOBAL_DEF(array_name, new_array_name) _EV_ARRAY_XXX(array_name, new_array_name, _VALUE_STRING_LIST, _EV_ARRAY_ENTRY_FROM_VS)
#define | VS_LIST_TO_ENUM_VAL_T_ARRAY_GLOBAL_DCL(new_array_name) extern const enum_val_t new_array_name[]
#define | ENUM_VAL_T_ENUM(array_name) _EV_ENUM_XXX(array_name, _ENUM_VAL_T_LIST, _EV_ENUM_ENTRY)
#define | ENUM_VAL_T_ARRAY_STATIC( array_name) static _EV_ARRAY_XXX(array_name, array_name, _ENUM_VAL_T_LIST, _EV_ARRAY_ENTRY)
#define | ENUM_VAL_T_ARRAY_GLOBAL_DEF(array_name) _EV_ARRAY_XXX(array_name, array_name, _ENUM_VAL_T_LIST, _EV_ARRAY_ENTRY)
#define | ENUM_VAL_T_ARRAY_GLOBAL_DCL(array_name) extern const enum_val_t array_name[]
#define | ENUM_VAL_T_TO_VS_ARRAY_STATIC( array_name, new_array_name) static _EV_TO_VS_ARRAY_XXX(array_name, new_array_name, _ENUM_VAL_T_LIST, _VS_ARRAY_ENTRY_FROM_EV)
#define | ENUM_VAL_T_TO_VS_ARRAY_GLOBAL_DEF(array_name, new_array_name) _EV_TO_VS_ARRAY_XXX(array_name, new_array_name, _ENUM_VAL_T_LIST, _VS_ARRAY_ENTRY_FROM_EV)
#define | ENUM_VAL_T_TO_VS_ARRAY_GLOBAL_DCL(new_array_name) extern const value_string new_array_name[]
#define | ENUM_VAL_T_TO_VS_ARRAY_STATIC2( array_name, new_array_name) static _EV_TO_VS_ARRAY_XXX(array_name, new_array_name, _ENUM_VAL_T_LIST, _VS_ARRAY_ENTRY_FROM_EV2)
#define | ENUM_VAL_T_TO_VS_ARRAY_GLOBAL_DEF2(array_name, new_array_name) _EV_TO_VS_ARRAY_XXX(array_name, new_array_name, _ENUM_VAL_T_LIST, _VS_ARRAY_ENTRY_FROM_EV2)
#define | ENUM_VAL_T_TO_VS_ARRAY_GLOBAL_DCL2(new_array_name) extern const value_string new_array_name[]
#define | ENUM_VAL_T_TO_VS_ARRAY_STATIC3( array_name, new_array_name) static _EV_TO_VS_ARRAY_XXX(array_name, new_array_name, _ENUM_VAL_T_LIST, _VS_ARRAY_ENTRY_FROM_EV3)
#define | ENUM_VAL_T_TO_VS_ARRAY_GLOBAL_DEF3(array_name, new_array_name) _EV_TO_VS_ARRAY_XXX(array_name, new_array_name, _ENUM_VAL_T_LIST, _VS_ARRAY_ENTRY_FROM_EV3)
#define | ENUM_VAL_T_TO_VS_ARRAY_GLOBAL_DCL3(new_array_name) extern const value_string new_array_name[]
#define | _EV_ARRAY_XXX(array_name, new_array_name, array_suffix, macro)
#define | _EV_ARRAY_ENTRY(enum_name, value, name, description) { name, description, value },
#define | _EV_ARRAY_ENTRY_FROM_VS(enum_name, value, string) { string, string, value },
#define | _EV_ENUM_XXX(array_name, array_suffix, macro)
#define | _EV_ENUM_ENTRY(enum_name, value, name, description) enum_name = value,
#define | _EV_TO_VS_ARRAY_XXX(array_name, new_array_name, array_suffix, macro)
#define | _VS_ARRAY_ENTRY_FROM_EV(enum_name, value, name, description) { value, name }
#define | _VS_ARRAY_ENTRY_FROM_EV2(enum_name, value, name, description) { value, #enum_name }
#define | _VS_ARRAY_ENTRY_FROM_EV3(enum_name, value, name, description) { value, description }

## Detailed Description

Definitions for parameter handling routines

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

## Macro Definition Documentation

## ◆ _EV_ARRAY_XXX

#define _EV_ARRAY_XXX | ( |  | array_name,
|  |  | new_array_name,
|  |  | array_suffix,
|  |  | macro
| ) |  |

Value:
const enum_val_t new_array_name[] = { \
array_name##array_suffix(macro) \
{ NULL, NULL, 0 } \
}
enum_val_t
Definition params.h:23

## ◆ _EV_ENUM_XXX

#define _EV_ENUM_XXX | ( |  | array_name,
|  |  | array_suffix,
|  |  | macro
| ) |  |

Value:
enum { \
array_name##array_suffix(macro) \
_##array_name##_ENUM_DUMMY = 0 \
}

## ◆ _EV_TO_VS_ARRAY_XXX

#define _EV_TO_VS_ARRAY_XXX | ( |  | array_name,
|  |  | new_array_name,
|  |  | array_suffix,
|  |  | macro
| ) |  |

Value:
const value_string new_array_name[] = { \
array_name##array_suffix(macro) \
{ 0, NULL } \
}
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33