Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
filter_expressions.h File Reference
#include "ws_symbol_export.h"
#include <epan/prefs.h>
#include <epan/wmem_scopes.h>

Go to the source code of this file.

Classes

struct  filter_expression
 

Typedefs

typedef struct filter_expression filter_expression_t
 

Functions

WS_DLL_PUBLIC void filter_expression_iterate_expressions (wmem_foreach_func func, void *user_data)
 Iterate over all display filter macros.
 
WS_DLL_PUBLIC filter_expression_tfilter_expression_new (const char *label, const char *expr, const char *comment, const bool enabled)
 Create a filter expression.
 
void filter_expression_register_uat (module_t *pref_module)
 Registers a User-Accessible Table (UAT) for display filter expressions.
 

Detailed Description

Filter expressions.

Function Documentation

◆ filter_expression_iterate_expressions()

WS_DLL_PUBLIC void filter_expression_iterate_expressions ( wmem_foreach_func  func,
void *  user_data 
)

Iterate over all display filter macros.

Parameters
funcFunction to call for each expression.
user_dataUser data to pass to the function.

◆ filter_expression_new()

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.

Parameters
labelLabel (button) text for the expression.
exprThe display filter for the expression.
commentA comment about the filter.
enabledDetermines if the expression is shown in the UI.
Returns
A newly allocated and initialized struct filter_expression.

◆ filter_expression_register_uat()

void filter_expression_register_uat ( module_t pref_module)

Registers a User-Accessible Table (UAT) for display filter expressions.

Parameters
pref_modulePointer to the module structure where preferences are registered.