| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
aggregation_fields.h
Go to the documentation of this file.
1/* aggregation_fields.h
2 * Definitions and functions for aggregation fields
3 * By Hamdi Miladi <hamdi.miladi@technica-engineering.de>
4 * Copyright 2025 Hamdi Miladi
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12#pragma once
13#include <epan/prefs.h>
14
15#ifdef __cplusplus
16 extern "C" {
17#endif /* __cplusplus */
18
22
26 typedef struct aggregation_field {
27 char *field;
28 int hf_id;
29} aggregation_field_t;
30
31/* Keep the UAT structure local to the aggregation_fields */
32
41 void aggregation_field_register_uat(module_t* pref_module);
42
43#ifdef __cplusplus
44}
45#endif /* __cplusplus */
46
53WS_DLL_PUBLIC
54 void apply_aggregation_prefs(void);
apply_aggregation_prefs
WS_DLL_PUBLIC void apply_aggregation_prefs(void)
Applies aggregation preferences from a UAT (User-Accessible Table) to the global preferences structur...
Definition aggregation_fields.c:81
aggregation_field_t
struct aggregation_field aggregation_field_t
Associates a display filter field name with its registered header field ID for aggregation.
aggregation_field_register_uat
void aggregation_field_register_uat(module_t *pref_module)
Registers UAT for aggregation fields.
Definition aggregation_fields.c:56
prefs.h
aggregation_field
Associates a display filter field name with its registered header field ID for aggregation.
Definition aggregation_fields.h:26
aggregation_field::hf_id
int hf_id
Definition aggregation_fields.h:28
aggregation_field::field
char * field
Definition aggregation_fields.h:27
pref_module
Represents a preference module grouping related preferences under a named, hierarchical entry in the ...
Definition prefs-int.h:27