|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Macros | |
| #define | UAT_BOOL_ENABLE_CB_DEF(basename, field_name, rec_t) |
| #define | UAT_FLD_BOOL_ENABLE(basename, field_name, title, desc) {#field_name, title, PT_TXTMOD_BOOL,{uat_fld_chk_enable,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{0,0,0},0,desc,FLDFILL} |
| #define | UAT_FLD_SMA_PERIOD(basename, field_name, title, enum, desc) {#field_name, title, PT_TXTMOD_ENUM,{sma_period_chk_enum,basename ## _ ## field_name ## _set_cb,basename ## _ ## field_name ## _tostr_cb},{&(enum),&(enum),&(enum)},&(enum),desc,FLDFILL} |
Functions | |
| bool | sma_period_chk_enum (void *u1 _U_, const char *strptr, unsigned len, const void *v, const void *u3 _U_, char **err) |
| Checks if the SMA period value is valid. | |
| void | io_graph_sma_period_tostr_cb (void *rec, char **out_ptr, unsigned *out_len, const void *vs, const void *u2 _U_) |
| Converts SMA period to a string representation. | |
| void | io_graph_sma_period_set_cb (void *rec, const char *buf, unsigned len, const void *vs, const void *u2 _U_) |
| Callback function to set the SMA period for an IO graph. | |
Macros for I/O graph UAT items
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
| #define UAT_BOOL_ENABLE_CB_DEF | ( | basename, | |
| field_name, | |||
| rec_t | |||
| ) |
| void io_graph_sma_period_set_cb | ( | void * | rec, |
| const char * | buf, | ||
| unsigned | len, | ||
| const void * | vs, | ||
| const void *u2 | _U_ | ||
| ) |
Callback function to set the SMA period for an IO graph.
This function processes the input buffer containing the SMA period setting and updates the record accordingly.
| rec | Pointer to the record being updated. |
| buf | Buffer containing the input string. |
| len | Length of the input buffer. |
| vs | Pointer to the value_string array for valid SMA periods. |
| u2 | Unused parameter. |
| void io_graph_sma_period_tostr_cb | ( | void * | rec, |
| char ** | out_ptr, | ||
| unsigned * | out_len, | ||
| const void * | vs, | ||
| const void *u2 | _U_ | ||
| ) |
Converts SMA period to a string representation.
| rec | Pointer to the record containing the SMA period. |
| out_ptr | Pointer to the output buffer for the string. |
| out_len | Pointer to the length of the output buffer. |
| vs | Pointer to the value string array. |
| u2 | Unused parameter. |
| bool sma_period_chk_enum | ( | void *u1 | _U_, |
| const char * | strptr, | ||
| unsigned | len, | ||
| const void * | v, | ||
| const void *u3 | _U_, | ||
| char ** | err | ||
| ) |
Checks if the SMA period value is valid.
| u1 | Unused parameter. |
| strptr | The string pointer to be checked. |
| len | The length of the string. |
| v | Pointer to the value string array. |
| u3 | Unused parameter. |
| err | Pointer to store error message if any. |