epan/dissectors/pidl/samr/samr.cnf cnf_dissect_lsa_BinaryString => lsarpc_dissect_str...
[wireshark-sm.git] / epan / filter_expressions.h
blob907df1b6fde8f8ccdbebb0faf26a88af034274ba
1 /* filter_expressions.h
2 * Submitted by Edwin Groothuis <wireshark@mavetju.org>
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #ifndef __FILTER_EXPRESSIONS_H__
12 #define __FILTER_EXPRESSIONS_H__
14 #include "ws_symbol_export.h"
16 #include <epan/prefs.h>
17 #include <epan/wmem_scopes.h>
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
23 /** @file
24 * Filter expressions.
27 typedef struct filter_expression {
28 char *label;
29 char *expression;
30 char *comment;
32 bool enabled; /* Can be set to false by Preferences Dialog */
33 } filter_expression_t;
35 WS_DLL_PUBLIC void filter_expression_iterate_expressions(wmem_foreach_func func, void* user_data);
37 /** Create a filter expression
39 * @param label Label (button) text for the expression.
40 * @param expr The display filter for the expression.
41 * @param comment A comment about the filter.
42 * @param enabled Determines if the expression is shown in the UI.
43 * @return A newly allocated and initialized struct filter_expression.
45 WS_DLL_PUBLIC
46 filter_expression_t *filter_expression_new(const char *label,
47 const char *expr, const char *comment, const bool enabled);
49 /* Keep the UAT structure local to the filter_expressions */
50 void filter_expression_register_uat(module_t* pref_module);
52 #ifdef __cplusplus
54 #endif /* __cplusplus */
56 #endif /* __FILTER_EXPRESSIONS_H__ */