Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
filter_expressions.h
Go to the documentation of this file.
1/* filter_expressions.h
2 * Submitted by Edwin Groothuis <[email protected]>
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <[email protected]>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10#pragma once
11#include "ws_symbol_export.h"
12
13#include <epan/prefs.h>
14#include <epan/wmem_scopes.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
24typedef struct filter_expression {
25 char *label;
26 char *expression;
27 char *comment;
28
29 bool enabled; /* Can be set to false by Preferences Dialog */
31
38WS_DLL_PUBLIC void filter_expression_iterate_expressions(wmem_foreach_func func, void* user_data);
39
49WS_DLL_PUBLIC
51 const char *expr, const char *comment, const bool enabled);
52
53/* Keep the UAT structure local to the filter_expressions */
60
61#ifdef __cplusplus
62}
63#endif /* __cplusplus */
void filter_expression_register_uat(module_t *pref_module)
Registers a User-Accessible Table (UAT) for display filter expressions.
Definition filter_expressions.c:96
WS_DLL_PUBLIC filter_expression_t * filter_expression_new(const char *label, const char *expr, const char *comment, const bool enabled)
Create a filter expression.
Definition filter_expressions.c:37
WS_DLL_PUBLIC void filter_expression_iterate_expressions(wmem_foreach_func func, void *user_data)
Iterate over all display filter macros.
Definition filter_expressions.c:53
bool(* wmem_foreach_func)(const void *key, void *value, void *userdata)
Function type for processing one node of a tree during a traversal.
Definition wmem_tree.h:389
Definition filter_expressions.h:24
Definition prefs-int.h:24