Wireshark 4.5.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
11#ifndef __FILTER_EXPRESSIONS_H__
12#define __FILTER_EXPRESSIONS_H__
13
14#include "ws_symbol_export.h"
15
16#include <epan/prefs.h>
17#include <epan/wmem_scopes.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
27typedef struct filter_expression {
28 char *label;
29 char *expression;
30 char *comment;
31
32 bool enabled; /* Can be set to false by Preferences Dialog */
34
35WS_DLL_PUBLIC void filter_expression_iterate_expressions(wmem_foreach_func func, void* user_data);
36
45WS_DLL_PUBLIC
47 const char *expr, const char *comment, const bool enabled);
48
49/* Keep the UAT structure local to the filter_expressions */
50void filter_expression_register_uat(module_t* pref_module);
51
52#ifdef __cplusplus
53}
54#endif /* __cplusplus */
55
56#endif /* __FILTER_EXPRESSIONS_H__ */
WS_DLL_PUBLIC filter_expression_t * filter_expression_new(const char *label, const char *expr, const char *comment, const bool enabled)
Definition filter_expressions.c:37
bool(* wmem_foreach_func)(const void *key, void *value, void *userdata)
Definition wmem_tree.h:247
Definition filter_expressions.h:27
Definition prefs-int.h:27