| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
prefs.h
Go to the documentation of this file.
1
10#pragma once
11#include <glib.h>
12
13#include <epan/params.h>
14#include <epan/range.h>
15
16#include <wsutil/color.h>
17
18#include "ws_symbol_export.h"
19
20#ifdef __cplusplus
21 extern "C" {
22#endif /* __cplusplus */
23
24#define DEF_WIDTH 750
25#define DEF_HEIGHT 550
26
27#define MAX_VAL_LEN 1024
28
29#define TAP_UPDATE_DEFAULT_INTERVAL 3000
30#define ST_DEF_BURSTRES 5
31#define ST_DEF_BURSTLEN 100
32#define ST_MAX_BURSTRES 600000 /* somewhat arbitrary limit of 10 minutes */
33#define ST_MAX_BURSTBUCKETS 100 /* somewhat arbitrary limit - more buckets degrade performance */
34#define DEF_GUI_DECIMAL_PLACES1 2
35#define DEF_GUI_DECIMAL_PLACES2 4
36#define DEF_GUI_DECIMAL_PLACES3 6
37
38#define CONV_DEINT_KEY_CAPFILE 0x01 /* unused yet */
39#define CONV_DEINT_KEY_INTERFACE 0x02
40#define CONV_DEINT_KEY_MAC 0x04
41#define CONV_DEINT_KEY_VLAN 0x08
42
43/* Bitmask of flags for the effect of a preference in Wireshark */
44#define PREF_EFFECT_DISSECTION (1u << 0)
45#define PREF_EFFECT_CAPTURE (1u << 1)
46#define PREF_EFFECT_GUI_LAYOUT (1u << 2)
47#define PREF_EFFECT_FIELDS (1u << 3)
48#define PREF_EFFECT_GUI (1u << 4)
49#define PREF_EFFECT_GUI_COLOR (1u << 5)
50#define PREF_EFFECT_AGGREGATION (1u << 6)
51
52/* Default update interval in milliseconds */
53#define DEFAULT_UPDATE_INTERVAL 100
54
55 struct epan_uat;
56 struct _e_addr_resolve;
57
69WS_DLL_PUBLIC
70 char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve);
71
72/*
73 * Modes for the starting directory in File Open dialogs.
74 */
75#define FO_STYLE_LAST_OPENED 0 /* start in last directory we looked at */
76#define FO_STYLE_SPECIFIED 1 /* start in specified directory */
77#define FO_STYLE_CWD 2 /* start in current working directory at startup */
78
79/*
80 * Toolbar styles.
81 */
82#define TB_STYLE_ICONS 0
83#define TB_STYLE_TEXT 1
84#define TB_STYLE_BOTH 2
85
86#define COLOR_SCHEME_DEFAULT 0
87#define COLOR_SCHEME_LIGHT 1
88#define COLOR_SCHEME_DARK 2
89
93 typedef enum {
94 layout_unused,
95 layout_type_5,
96 layout_type_2,
97 layout_type_1,
98 layout_type_4,
99 layout_type_3,
100 layout_type_6,
101 layout_type_max
102} layout_type_e;
103
104
108 typedef enum {
109 layout_pane_content_none,
110 layout_pane_content_plist,
111 layout_pane_content_pdetails,
112 layout_pane_content_pbytes,
113 layout_pane_content_pdiagram,
114} layout_pane_content_e;
115
116
120 typedef enum {
121 version_welcome_only,
122 version_title_only,
123 version_both,
124 version_neither
125} version_info_e;
126
127
131 typedef enum {
132 layout_vertical,
133 layout_horizontal
134} splitter_layout_e;
135
136
140 typedef enum {
141 pref_default,
142 pref_stashed,
143 pref_current
144} pref_source_t;
145
146
150 typedef enum {
151 ELIDE_LEFT,
152 ELIDE_RIGHT,
153 ELIDE_MIDDLE,
154 ELIDE_NONE
155} elide_mode_e;
156
157
161 typedef enum {
162 COPY_FORMAT_TEXT,
163 COPY_FORMAT_CSV,
164 COPY_FORMAT_YAML,
165 COPY_FORMAT_HTML
166} copy_format_e;
167
168
172 typedef enum {
173 ABS_TIME_ASCII_NEVER,
174 ABS_TIME_ASCII_TREE,
175 ABS_TIME_ASCII_COLUMN,
176 ABS_TIME_ASCII_ALWAYS,
177} abs_time_format_e;
178
179
183 typedef enum {
184 UPDATE_CHANNEL_DEVELOPMENT,
185 UPDATE_CHANNEL_STABLE
186} software_update_channel_e;
187
188
192 typedef enum {
193 PACKET_LIST_MULTI_COLOR_MODE_OFF = 0,
194 PACKET_LIST_MULTI_COLOR_MODE_SCROLLBAR_ONLY,
195 PACKET_LIST_MULTI_COLOR_MODE_FULL,
196 PACKET_LIST_MULTI_COLOR_MODE_SHIFT_RIGHT
197} gui_packet_list_multi_color_mode_e;
198
199
203 typedef enum {
204 PACKET_LIST_MULTI_COLOR_SEPARATOR_VERTICAL = 0,
205 PACKET_LIST_MULTI_COLOR_SEPARATOR_DIAGONAL,
206 PACKET_LIST_MULTI_COLOR_SEPARATOR_BUBBLE
207} gui_packet_list_multi_color_separator_e;
208
209
213 typedef struct _e_prefs {
214 GList *col_list;
215 unsigned num_cols;
216
217 /* GUI appearance */
218 int gui_toolbar_main_style;
219 char *gui_font_name;
220
221 /* Colorized column colors */
222 char *gui_colorized_fg;
223 char *gui_colorized_bg;
224
225 /* Window geometry */
226 bool gui_geometry_save_position;
227 bool gui_geometry_save_size;
228 bool gui_geometry_save_maximized;
229
230 /* Recent entries */
231 unsigned gui_recent_df_entries_max;
232 unsigned gui_recent_files_count_max;
233
234 /* File open dialog */
235 unsigned gui_fileopen_style;
236 char *gui_fileopen_dir;
237 unsigned gui_fileopen_preview;
238
239 char *gui_tlskeylog_command;
240
241 /* Dialog behavior */
242 bool gui_ask_unsaved;
243 bool gui_autocomplete_filter;
244 bool gui_find_wrap;
245
246 /* Window title */
247 char *gui_window_title;
248 char *gui_prepend_window_title;
249 char *gui_start_title;
250 version_info_e gui_version_placement;
251
252 /* Export/tree limits */
253 unsigned gui_max_export_objects;
254 unsigned gui_max_tree_items;
255 unsigned gui_max_tree_depth;
256
257 bool gui_welcome_page_show_recent;
258
259 /* Layout */
260 layout_type_e gui_layout_type;
261 layout_pane_content_e gui_layout_content_1;
262 layout_pane_content_e gui_layout_content_2;
263 layout_pane_content_e gui_layout_content_3;
264 splitter_layout_e gui_packet_dialog_layout;
265
266 /* Interface filtering */
267 char *gui_interfaces_hide_types;
268 bool gui_interfaces_show_hidden;
269 bool gui_interfaces_remote_display;
270
271 /* I/O graph */
272 bool gui_io_graph_automatic_update;
273 bool gui_io_graph_enable_legend;
274
275 /* Plot */
276 bool gui_plot_automatic_update;
277 bool gui_plot_enable_legend;
278 bool gui_plot_enable_auto_scroll;
279
280 bool gui_packet_details_show_byteview;
281
282 /* Capture device settings */
283 char *capture_device;
284 char *capture_devices_linktypes;
285 char *capture_devices_descr;
286 char *capture_devices_hide;
287 char *capture_devices_monitor_mode;
288 char *capture_devices_buffersize;
289 char *capture_devices_snaplen;
290 char *capture_devices_pmode;
291 char *capture_devices_filter;
292
293 /* Capture behavior */
294 bool capture_prom_mode;
295 bool capture_monitor_mode;
296 bool capture_pcap_ng;
297 bool capture_real_time;
298 unsigned capture_update_interval;
299
300 /* Aggregation */
301 GList *aggregation_fields;
302 int aggregation_fields_num;
303
304 /* Capture startup */
305 bool capture_no_interface_load;
306 bool capture_no_extcap;
307 bool capture_show_info;
308
309 /* Update intervals */
310 unsigned tap_update_interval;
311
312 /* Dissection display options */
313 bool display_hidden_proto_items;
314 bool display_byte_fields_with_spaces;
315 abs_time_format_e display_abs_time_ascii;
316
317 /* Dissector checking */
318 bool enable_incomplete_dissectors_check;
319 bool incomplete_dissectors_check_debug;
320 bool strict_conversation_tracking_heuristics;
321 int conversation_deinterlacing_key;
322
323 /* Duplicate frame detection */
324 bool ignore_dup_frames;
325 unsigned ignore_dup_frames_cache_entries;
326
327 /* Migration flags */
328 bool filter_expressions_old;
329 bool cols_hide_new;
330
331 /* Auto-update */
332 bool gui_update_enabled;
333 software_update_channel_e gui_update_channel;
334 unsigned gui_update_interval;
335 unsigned gui_debounce_timer;
336
337 char *saved_at_version;
338
339 /* Packet list display options */
340 bool gui_packet_list_separator;
341 bool gui_packet_header_column_definition;
342 bool gui_packet_list_hover_style;
343 bool gui_show_selected_packet;
344 bool gui_show_file_load_time;
345 elide_mode_e gui_packet_list_elide_mode;
346 copy_format_e gui_packet_list_copy_format_options_for_keyboard_shortcut;
347 bool gui_packet_list_copy_text_with_aligned_columns;
348 bool gui_packet_list_show_related;
349 bool gui_packet_list_show_minimap;
350 bool gui_packet_list_sortable;
351 unsigned gui_packet_list_cached_rows_max;
352
353 /* Multi-color stripe settings */
354 gui_packet_list_multi_color_mode_e gui_packet_list_multi_color_mode;
355 unsigned gui_packet_list_multi_color_shift_percent;
356 bool gui_packet_list_multi_color_details;
357 gui_packet_list_multi_color_separator_e gui_packet_list_multi_color_separator;
358
359 /* Decimal places for statistics calculations */
360 unsigned gui_decimal_places1;
361 unsigned gui_decimal_places2;
362 unsigned gui_decimal_places3;
363
364 /* RTP player */
365 bool gui_rtp_player_use_disk1;
366 bool gui_rtp_player_use_disk2;
367
368 /* Flow graph */
369 unsigned flow_graph_max_export_items;
370
371 /* Statistics burst detection */
372 bool st_enable_burstinfo;
373 bool st_burst_showcount;
374 unsigned st_burst_resolution;
375 unsigned st_burst_windowlen;
376
377 /* Statistics sorting */
378 bool st_sort_casesensitve;
379 bool st_sort_rng_fixorder;
380 bool st_sort_rng_nameonly;
381 int st_sort_defcolflag;
382 bool st_sort_defdescending;
383 bool st_sort_showfullname;
384 int st_format;
385
386 bool conv_machine_readable;
387 bool extcap_save_on_start;
388} e_prefs;
389
390WS_DLL_PUBLIC e_prefs prefs;
391
392/*
393 * Routines to let modules that have preference settings register
394 * themselves by name, and to let them register preference settings
395 * by name.
396 */
397 struct pref_module;
398
399 struct pref_custom_cbs;
400
401 typedef struct pref_module module_t;
402
404
411 void prefs_init(const char** col_fmt, int num_cols);
412
414
422WS_DLL_PUBLIC void prefs_reset(const char* app_env_var_prefix, const char** col_fmt, int num_cols);
423
425
429 void prefs_cleanup(void);
430
439WS_DLL_PUBLIC module_t *prefs_register_protocol(int id, void (*apply_cb)(void));
440
447WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module);
448
454 void prefs_deregister_protocol(int id);
455
466WS_DLL_PUBLIC module_t *prefs_register_stat(const char *name, const char *title,
467 const char *description, void (*apply_cb)(void));
468
479WS_DLL_PUBLIC module_t *prefs_register_codec(const char *name, const char *title,
480 const char *description, void (*apply_cb)(void));
481
493WS_DLL_PUBLIC module_t *prefs_register_protocol_subtree(const char *subtree, int id,
494 void (*apply_cb)(void));
495
503WS_DLL_PUBLIC module_t *prefs_register_protocol_obsolete(int id);
504
524WS_DLL_PUBLIC module_t*
525 prefs_register_module(wmem_tree_t* pref_tree, wmem_tree_t* master_pref_tree, const char* name, const char* title,
526 const char* description, const char* help, void (*apply_cb)(void),
527 const bool use_gui);
528
532 typedef unsigned (*module_cb)(module_t *module, void *user_data);
533
539WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module);
540
553WS_DLL_PUBLIC unsigned prefs_modules_foreach(const wmem_tree_t* module, module_cb callback, void *user_data);
554
569WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(const wmem_tree_t* module, module_cb callback, void *user_data);
570
582WS_DLL_PUBLIC unsigned prefs_modules_for_all_modules(module_cb callback, void* user_data);
583
590WS_DLL_PUBLIC void prefs_apply_all(void);
591
599WS_DLL_PUBLIC void prefs_apply(module_t *module);
600
601
602 struct preference;
603
604 typedef struct preference pref_t;
605
611WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name);
612
618WS_DLL_PUBLIC const char *prefs_get_title_by_name(const char *name);
619
628WS_DLL_PUBLIC module_t *prefs_find_module(const char *name);
629
639WS_DLL_PUBLIC pref_t *prefs_find_preference(module_t * module, const char *pref);
640
658WS_DLL_PUBLIC void prefs_register_uint_preference(module_t *module, const char *name,
659 const char *title, const char *description, unsigned base, unsigned *var);
660
677WS_DLL_PUBLIC void prefs_register_int_preference(module_t* module, const char* name,
678 const char* title, const char* description, int* var);
679
697WS_DLL_PUBLIC void prefs_register_float_preference(module_t* module, const char* name,
698 const char* title, const char* description, unsigned num_decimal, double* var);
699
700/*
701 * prefs_register_ callers must conform to the following:
702 *
703 * Names must be in lowercase letters only (underscore allowed).
704 * Titles and descriptions must be valid UTF-8 or NULL.
705 * Titles must be short (less than 80 characters)
706 * Titles must not contain newlines.
707 */
708
725WS_DLL_PUBLIC void prefs_register_bool_preference(module_t *module, const char *name,
726 const char *title, const char *description, bool *var);
727
748WS_DLL_PUBLIC void prefs_register_enum_preference(module_t *module, const char *name,
749 const char *title, const char *description, int *var,
750 const enum_val_t *enumvals, bool radio_buttons);
751
773WS_DLL_PUBLIC void prefs_register_string_preference(module_t *module, const char *name,
774 const char *title, const char *description, const char **var);
775
803WS_DLL_PUBLIC void prefs_register_filename_preference(module_t *module, const char *name,
804 const char *title, const char *description, const char **var, bool for_writing);
805
830WS_DLL_PUBLIC void prefs_register_directory_preference(module_t *module, const char *name,
831 const char *title, const char *description, const char **var);
832
857WS_DLL_PUBLIC void prefs_register_list_string_preference(module_t* module, const char* name,
858 const char* title, const char* description, wmem_list_t** var);
859
885WS_DLL_PUBLIC void prefs_register_multiple_string_preference(module_t* module, const char* name,
886 const char* title, const char* description, wmem_list_t** var);
887
905WS_DLL_PUBLIC void prefs_register_range_preference(module_t *module, const char *name,
906 const char *title, const char *description, range_t **var,
907 uint32_t max_value);
908
923WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name,
924 const char *title, const char *description);
925
943WS_DLL_PUBLIC void prefs_register_uat_preference(module_t *module,
944 const char *name, const char* title, const char *description, struct epan_uat* uat);
945
966 void prefs_register_color_preference(module_t *module, const char *name,
967 const char *title, const char *description, color_t *color);
968
989 void prefs_register_custom_preference(module_t *module, const char *name,
990 const char *title, const char *description, struct pref_custom_cbs* custom_cbs,
991 void** custom_data);
992
1012 void prefs_register_decode_as_range_preference(module_t *module, const char *name,
1013 const char *title, const char *description, range_t **var,
1014 uint32_t max_value, const char *dissector_table, const char *dissector_description);
1015
1032WS_DLL_PUBLIC void prefs_register_password_preference(module_t *module, const char *name,
1033 const char *title, const char *description, const char **var);
1034
1056WS_DLL_PUBLIC void prefs_register_dissector_preference(module_t *module, const char *name,
1057 const char *title, const char *description, const char **var);
1058
1075WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module,
1076 const char *name);
1077
1098WS_DLL_PUBLIC void prefs_register_custom_preference_TCP_Analysis(module_t *module, const char *name,
1099 const char *title, const char *description, int *var,
1100 const enum_val_t *enumvals, bool radio_buttons);
1101
1118WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module,
1119 const char *name);
1120
1128WS_DLL_PUBLIC void prefs_set_preference_effect(module_t* module,
1129 const char* name, unsigned flags);
1130
1131 typedef unsigned (*pref_cb)(pref_t *pref, void *user_data);
1132
1147WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback,
1148 void *user_data);
1149
1160WS_DLL_PUBLIC GList *prefs_get_string_list(const char *str);
1161
1166WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl);
1167
1175WS_DLL_PUBLIC
1176 const char *prefs_pref_type_name(pref_t *pref);
1177
1187WS_DLL_PUBLIC
1188 char *prefs_pref_type_description(pref_t *pref);
1189
1198WS_DLL_PUBLIC
1199 char *prefs_pref_to_str(pref_t *pref, pref_source_t source);
1200
1208WS_DLL_PUBLIC
1209 int prefs_num_non_uat(module_t* module);
1210
1211
1219WS_DLL_PUBLIC
1220 bool prefs_is_preference_obsolete(pref_t *pref);
1221
1234 extern e_prefs *read_prefs(const char* app_env_var_prefix);
1235
1246WS_DLL_PUBLIC int write_prefs(const char* app_env_var_prefix, char **pf_path_return);
1247
1254WS_DLL_PUBLIC void pref_write_individual(void* data, void* user_data);
1255
1262WS_DLL_PUBLIC void pref_free_individual(void* data, void* user_data);
1263
1267 typedef enum {
1268 PREFS_SET_OK,
1269 PREFS_SET_SYNTAX_ERR,
1270 PREFS_SET_NO_SUCH_PREF,
1271 PREFS_SET_OBSOLETE
1272} prefs_set_pref_e;
1273
1287WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg);
1288
1298WS_DLL_PUBLIC range_t* prefs_get_range_value(const char *module_name, const char* pref_name);
1299
1306WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name);
1307
1314WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name);
1315
1322WS_DLL_PUBLIC bool prefs_has_layout_pane_content (layout_pane_content_e layout_pane_content);
1323
1324#ifdef __cplusplus
1325}
1326#endif /* __cplusplus */
1327
1328/*
1329 * Editor modelines - https://www.wireshark.org/tools/modelines.html
1330 *
1331 * Local variables:
1332 * c-basic-offset: 4
1333 * tab-width: 8
1334 * indent-tabs-mode: nil
1335 * End:
1336 *
1337 * vi: set shiftwidth=4 tabstop=8 expandtab:
1338 * :indentSize=4:tabSize=8:noTabs=true:
1339 */
color.h
wmem_list_t
struct _wmem_list_t wmem_list_t
Opaque type representing a scoped, doubly-linked list in the wmem system.
Definition wmem_list.h:42
wmem_tree_t
struct _wmem_tree_t wmem_tree_t
Opaque type representing a red-black tree in the wmem system.
Definition wmem_tree.h:49
params.h
prefs_register_codec
WS_DLL_PUBLIC module_t * prefs_register_codec(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:796
prefs_register_filename_preference
WS_DLL_PUBLIC void prefs_register_filename_preference(module_t *module, const char *name, const char *title, const char *description, const char **var, bool for_writing)
Definition prefs.c:1583
pref_source_t
pref_source_t
Selects which copy of a preference value is used as the active source.
Definition prefs.h:140
pref_stashed
@ pref_stashed
Definition prefs.h:142
pref_current
@ pref_current
Definition prefs.h:143
pref_default
@ pref_default
Definition prefs.h:141
prefs_is_preference_obsolete
WS_DLL_PUBLIC bool prefs_is_preference_obsolete(pref_t *pref)
Fetch whether a preference is marked obsolete.
Definition prefs.c:2066
prefs_set_preference_effect
WS_DLL_PUBLIC void prefs_set_preference_effect(module_t *module, const char *name, unsigned flags)
Set the effect flags for a preference in a given module.
Definition prefs.c:2077
prefs_register_protocol_subtree
WS_DLL_PUBLIC module_t * prefs_register_protocol_subtree(const char *subtree, int id, void(*apply_cb)(void))
Definition prefs.c:697
prefs_set_pref
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg)
Definition prefs.c:4887
prefs_register_uat_preference
WS_DLL_PUBLIC void prefs_register_uat_preference(module_t *module, const char *name, const char *title, const char *description, struct epan_uat *uat)
Definition prefs.c:1822
prefs_clear_string_list
WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl)
Clear the given list of string data.
Definition prefs.c:4117
prefs_register_color_preference
void prefs_register_color_preference(module_t *module, const char *name, const char *title, const char *description, color_t *color)
Definition prefs.c:1840
abs_time_format_e
abs_time_format_e
Controls whether absolute timestamps are rendered as ASCII in tree and column views.
Definition prefs.h:172
ABS_TIME_ASCII_NEVER
@ ABS_TIME_ASCII_NEVER
Definition prefs.h:173
ABS_TIME_ASCII_ALWAYS
@ ABS_TIME_ASCII_ALWAYS
Definition prefs.h:176
ABS_TIME_ASCII_COLUMN
@ ABS_TIME_ASCII_COLUMN
Definition prefs.h:175
ABS_TIME_ASCII_TREE
@ ABS_TIME_ASCII_TREE
Definition prefs.h:174
prefs_get_range_value
WS_DLL_PUBLIC range_t * prefs_get_range_value(const char *module_name, const char *pref_name)
Definition prefs.c:1783
prefs_register_directory_preference
WS_DLL_PUBLIC void prefs_register_directory_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:1597
gui_packet_list_multi_color_separator_e
gui_packet_list_multi_color_separator_e
Visual style of the separator between adjacent color stripes in the packet list.
Definition prefs.h:203
PACKET_LIST_MULTI_COLOR_SEPARATOR_BUBBLE
@ PACKET_LIST_MULTI_COLOR_SEPARATOR_BUBBLE
Definition prefs.h:206
PACKET_LIST_MULTI_COLOR_SEPARATOR_DIAGONAL
@ PACKET_LIST_MULTI_COLOR_SEPARATOR_DIAGONAL
Definition prefs.h:205
PACKET_LIST_MULTI_COLOR_SEPARATOR_VERTICAL
@ PACKET_LIST_MULTI_COLOR_SEPARATOR_VERTICAL
Definition prefs.h:204
prefs_register_range_preference
WS_DLL_PUBLIC void prefs_register_range_preference(module_t *module, const char *name, const char *title, const char *description, range_t **var, uint32_t max_value)
Definition prefs.c:1639
prefs_pref_type_description
WS_DLL_PUBLIC char * prefs_pref_type_description(pref_t *pref)
Fetch a long description of the preference type.
Definition prefs.c:6213
prefs_register_obsolete_preference
WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module, const char *name)
Register a preference that used to be supported but no longer is.
Definition prefs.c:2060
prefs_find_module
WS_DLL_PUBLIC module_t * prefs_find_module(const char *name)
Definition prefs.c:804
elide_mode_e
elide_mode_e
Controls which end of a text string is elided when it is too long to display.
Definition prefs.h:150
ELIDE_MIDDLE
@ ELIDE_MIDDLE
Definition prefs.h:153
ELIDE_NONE
@ ELIDE_NONE
Definition prefs.h:154
ELIDE_LEFT
@ ELIDE_LEFT
Definition prefs.h:151
ELIDE_RIGHT
@ ELIDE_RIGHT
Definition prefs.h:152
read_prefs
e_prefs * read_prefs(const char *app_env_var_prefix)
Read the preferences file, fill in "prefs", and return a pointer to it.
Definition prefs.c:4532
prefs_register_multiple_string_preference
WS_DLL_PUBLIC void prefs_register_multiple_string_preference(module_t *module, const char *name, const char *title, const char *description, wmem_list_t **var)
prefs_apply_all
WS_DLL_PUBLIC void prefs_apply_all(void)
Definition prefs.c:932
prefs_register_string_preference
WS_DLL_PUBLIC void prefs_register_string_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:1569
prefs_register_decode_as_range_preference
void prefs_register_decode_as_range_preference(module_t *module, const char *name, const char *title, const char *description, range_t **var, uint32_t max_value, const char *dissector_table, const char *dissector_description)
Definition prefs.c:1974
gui_packet_list_multi_color_mode_e
gui_packet_list_multi_color_mode_e
Multi-color stripe display mode for the packet list scrollbar and rows.
Definition prefs.h:192
PACKET_LIST_MULTI_COLOR_MODE_SCROLLBAR_ONLY
@ PACKET_LIST_MULTI_COLOR_MODE_SCROLLBAR_ONLY
Definition prefs.h:194
PACKET_LIST_MULTI_COLOR_MODE_OFF
@ PACKET_LIST_MULTI_COLOR_MODE_OFF
Definition prefs.h:193
PACKET_LIST_MULTI_COLOR_MODE_SHIFT_RIGHT
@ PACKET_LIST_MULTI_COLOR_MODE_SHIFT_RIGHT
Definition prefs.h:196
PACKET_LIST_MULTI_COLOR_MODE_FULL
@ PACKET_LIST_MULTI_COLOR_MODE_FULL
Definition prefs.h:195
prefs_register_float_preference
WS_DLL_PUBLIC void prefs_register_float_preference(module_t *module, const char *name, const char *title, const char *description, unsigned num_decimal, double *var)
Definition prefs.c:1206
prefs_has_layout_pane_content
WS_DLL_PUBLIC bool prefs_has_layout_pane_content(layout_pane_content_e layout_pane_content)
Returns true if the layout pane content is enabled.
Definition prefs.c:5272
module_cb
unsigned(* module_cb)(module_t *module, void *user_data)
Definition prefs.h:532
prefs_is_registered_protocol
WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name)
Definition prefs.c:1147
prefs_register_static_text_preference
WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name, const char *title, const char *description)
Definition prefs.c:1810
prefs_set_preference_effect_fields
WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module, const char *name)
Mark a preference that affects fields change.
Definition prefs.c:2072
pref_free_individual
WS_DLL_PUBLIC void pref_free_individual(void *data, void *user_data)
Callback function for freeing individual preferences.
prefs_get_title_by_name
WS_DLL_PUBLIC const char * prefs_get_title_by_name(const char *name)
Definition prefs.c:1158
layout_pane_content_e
layout_pane_content_e
Content assigned to a single layout pane in the main window.
Definition prefs.h:108
layout_pane_content_plist
@ layout_pane_content_plist
Definition prefs.h:110
layout_pane_content_pbytes
@ layout_pane_content_pbytes
Definition prefs.h:112
layout_pane_content_pdetails
@ layout_pane_content_pdetails
Definition prefs.h:111
layout_pane_content_pdiagram
@ layout_pane_content_pdiagram
Definition prefs.h:113
layout_pane_content_none
@ layout_pane_content_none
Definition prefs.h:109
prefs_pref_foreach
WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback, void *user_data)
Call a callback function, with a specified argument, for each preference in a given module.
Definition prefs.c:2524
prefs_find_preference
WS_DLL_PUBLIC pref_t * prefs_find_preference(module_t *module, const char *pref)
Definition prefs.c:1138
prefs_register_protocol_obsolete
WS_DLL_PUBLIC module_t * prefs_register_protocol_obsolete(int id)
Definition prefs.c:749
prefs_deregister_protocol
void prefs_deregister_protocol(int id)
Definition prefs.c:685
prefs_capture_device_monitor_mode
WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name)
Returns true if the given device should capture in monitor mode by default.
Definition prefs.c:5251
prefs_register_module_alias
WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module)
Register an alias for a preference module.
Definition prefs.c:630
prefs_set_pref_e
prefs_set_pref_e
Result of setting a preference.
Definition prefs.h:1267
PREFS_SET_OK
@ PREFS_SET_OK
Definition prefs.h:1268
PREFS_SET_SYNTAX_ERR
@ PREFS_SET_SYNTAX_ERR
Definition prefs.h:1269
PREFS_SET_OBSOLETE
@ PREFS_SET_OBSOLETE
Definition prefs.h:1271
PREFS_SET_NO_SUCH_PREF
@ PREFS_SET_NO_SUCH_PREF
Definition prefs.h:1270
pref_write_individual
WS_DLL_PUBLIC void pref_write_individual(void *data, void *user_data)
Callback function for writing individual preferences.
Definition prefs.c:6556
version_info_e
version_info_e
Controls where version information is displayed in the GUI.
Definition prefs.h:120
version_both
@ version_both
Definition prefs.h:123
version_title_only
@ version_title_only
Definition prefs.h:122
version_neither
@ version_neither
Definition prefs.h:124
version_welcome_only
@ version_welcome_only
Definition prefs.h:121
prefs_pref_to_str
WS_DLL_PUBLIC char * prefs_pref_to_str(pref_t *pref, pref_source_t source)
Fetch a string representation of the preference.
Definition prefs.c:6419
prefs_pref_type_name
WS_DLL_PUBLIC const char * prefs_pref_type_name(pref_t *pref)
Fetch a short preference type name, e.g. "Integer".
Definition prefs.c:6067
prefs_modules_foreach
WS_DLL_PUBLIC unsigned prefs_modules_foreach(const wmem_tree_t *module, module_cb callback, void *user_data)
Definition prefs.c:881
prefs_modules_for_all_modules
WS_DLL_PUBLIC unsigned prefs_modules_for_all_modules(module_cb callback, void *user_data)
Definition prefs.c:903
prefs_cleanup
void prefs_cleanup(void)
Clean up preferences.
Definition prefs.c:401
copy_format_e
copy_format_e
Output format for copying packet list rows to the clipboard.
Definition prefs.h:161
COPY_FORMAT_CSV
@ COPY_FORMAT_CSV
Definition prefs.h:163
COPY_FORMAT_YAML
@ COPY_FORMAT_YAML
Definition prefs.h:164
COPY_FORMAT_TEXT
@ COPY_FORMAT_TEXT
Definition prefs.h:162
COPY_FORMAT_HTML
@ COPY_FORMAT_HTML
Definition prefs.h:165
prefs_register_uint_preference
WS_DLL_PUBLIC void prefs_register_uint_preference(module_t *module, const char *name, const char *title, const char *description, unsigned base, unsigned *var)
Definition prefs.c:1169
software_update_channel_e
software_update_channel_e
Automatic software update channel selection.
Definition prefs.h:183
UPDATE_CHANNEL_DEVELOPMENT
@ UPDATE_CHANNEL_DEVELOPMENT
Definition prefs.h:184
UPDATE_CHANNEL_STABLE
@ UPDATE_CHANNEL_STABLE
Definition prefs.h:185
prefs_register_dissector_preference
WS_DLL_PUBLIC void prefs_register_dissector_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:2004
prefs_num_non_uat
WS_DLL_PUBLIC int prefs_num_non_uat(module_t *module)
Fetch the number of preferences in a module that are not UATs.
Definition prefs.c:6667
write_prefs
WS_DLL_PUBLIC int write_prefs(const char *app_env_var_prefix, char **pf_path_return)
Write out "prefs" to the user's preferences file, and return 0.
Definition prefs.c:6753
prefs_register_protocol
WS_DLL_PUBLIC module_t * prefs_register_protocol(int id, void(*apply_cb)(void))
Definition prefs.c:673
prefs_init
void prefs_init(const char **col_fmt, int num_cols)
Initialize preferences system.
Definition prefs.c:306
prefs_get_string_list
WS_DLL_PUBLIC GList * prefs_get_string_list(const char *str)
Parse through a list of comma-separated, possibly quoted strings. Return a list of the string data.
Definition prefs.c:3988
prefs_apply
WS_DLL_PUBLIC void prefs_apply(module_t *module)
Definition prefs.c:944
prefs_reset
WS_DLL_PUBLIC void prefs_reset(const char *app_env_var_prefix, const char **col_fmt, int num_cols)
Resets preferences to their default values.
Definition prefs.c:4418
prefs_register_module
WS_DLL_PUBLIC module_t * prefs_register_module(wmem_tree_t *pref_tree, wmem_tree_t *master_pref_tree, const char *name, const char *title, const char *description, const char *help, void(*apply_cb)(void), const bool use_gui)
Register a module that will have preferences. Specify the module under which to register it,...
Definition prefs.c:492
prefs_register_bool_preference
WS_DLL_PUBLIC void prefs_register_bool_preference(module_t *module, const char *name, const char *title, const char *description, bool *var)
Definition prefs.c:1243
e_prefs
struct _e_prefs e_prefs
Global Wireshark preferences structure holding all persistent configuration settings.
layout_type_e
layout_type_e
Arrangement type of the summary, details, and hex panes in the main window.
Definition prefs.h:93
layout_type_5
@ layout_type_5
Definition prefs.h:95
layout_type_4
@ layout_type_4
Definition prefs.h:98
layout_type_1
@ layout_type_1
Definition prefs.h:97
layout_unused
@ layout_unused
Definition prefs.h:94
layout_type_3
@ layout_type_3
Definition prefs.h:99
layout_type_2
@ layout_type_2
Definition prefs.h:96
layout_type_6
@ layout_type_6
Definition prefs.h:100
layout_type_max
@ layout_type_max
Definition prefs.h:101
prefs_register_list_string_preference
WS_DLL_PUBLIC void prefs_register_list_string_preference(module_t *module, const char *name, const char *title, const char *description, wmem_list_t **var)
prefs_register_custom_preference
void prefs_register_custom_preference(module_t *module, const char *name, const char *title, const char *description, struct pref_custom_cbs *custom_cbs, void **custom_data)
prefs_register_enum_preference
WS_DLL_PUBLIC void prefs_register_enum_preference(module_t *module, const char *name, const char *title, const char *description, int *var, const enum_val_t *enumvals, bool radio_buttons)
Definition prefs.c:1332
prefs_register_stat
WS_DLL_PUBLIC module_t * prefs_register_stat(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:776
prefs_register_int_preference
WS_DLL_PUBLIC void prefs_register_int_preference(module_t *module, const char *name, const char *title, const char *description, int *var)
Definition prefs.c:1192
prefs_modules_foreach_submodules
WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(const wmem_tree_t *module, module_cb callback, void *user_data)
Definition prefs.c:897
prefs_module_has_submodules
WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module)
Definition prefs.c:859
prefs_register_custom_preference_TCP_Analysis
WS_DLL_PUBLIC void prefs_register_custom_preference_TCP_Analysis(module_t *module, const char *name, const char *title, const char *description, int *var, const enum_val_t *enumvals, bool radio_buttons)
Register a preference with an enumerated value.
Definition prefs.c:1955
prefs_is_capture_device_hidden
WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name)
Checks if the specified capture device is hidden.
Definition prefs.c:5102
string_to_name_resolve
WS_DLL_PUBLIC char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve)
Definition prefs.c:5280
prefs_register_password_preference
WS_DLL_PUBLIC void prefs_register_password_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:1990
splitter_layout_e
splitter_layout_e
Orientation of a splitter divider between panes.
Definition prefs.h:131
layout_horizontal
@ layout_horizontal
Definition prefs.h:133
layout_vertical
@ layout_vertical
Definition prefs.h:132
range.h
range_t
struct epan_range range_t
_e_addr_resolve
Flags to control name resolution.
Definition addr_resolv.h:49
_e_prefs
Global Wireshark preferences structure holding all persistent configuration settings.
Definition prefs.h:213
_e_prefs::gui_decimal_places1
unsigned gui_decimal_places1
Definition prefs.h:360
_e_prefs::gui_plot_enable_legend
bool gui_plot_enable_legend
Definition prefs.h:277
_e_prefs::gui_rtp_player_use_disk2
bool gui_rtp_player_use_disk2
Definition prefs.h:366
_e_prefs::capture_update_interval
unsigned capture_update_interval
Definition prefs.h:298
_e_prefs::gui_packet_list_copy_text_with_aligned_columns
bool gui_packet_list_copy_text_with_aligned_columns
Definition prefs.h:347
_e_prefs::capture_devices_linktypes
char * capture_devices_linktypes
Definition prefs.h:284
_e_prefs::aggregation_fields
GList * aggregation_fields
Definition prefs.h:301
_e_prefs::gui_update_enabled
bool gui_update_enabled
Definition prefs.h:332
_e_prefs::filter_expressions_old
bool filter_expressions_old
Definition prefs.h:328
_e_prefs::gui_packet_list_multi_color_details
bool gui_packet_list_multi_color_details
Definition prefs.h:356
_e_prefs::gui_plot_automatic_update
bool gui_plot_automatic_update
Definition prefs.h:276
_e_prefs::gui_colorized_fg
char * gui_colorized_fg
Definition prefs.h:222
_e_prefs::gui_packet_list_show_minimap
bool gui_packet_list_show_minimap
Definition prefs.h:349
_e_prefs::capture_devices_monitor_mode
char * capture_devices_monitor_mode
Definition prefs.h:287
_e_prefs::gui_packet_details_show_byteview
bool gui_packet_details_show_byteview
Definition prefs.h:280
_e_prefs::capture_show_info
bool capture_show_info
Definition prefs.h:307
_e_prefs::capture_no_interface_load
bool capture_no_interface_load
Definition prefs.h:305
_e_prefs::gui_decimal_places3
unsigned gui_decimal_places3
Definition prefs.h:362
_e_prefs::gui_decimal_places2
unsigned gui_decimal_places2
Definition prefs.h:361
_e_prefs::capture_devices_descr
char * capture_devices_descr
Definition prefs.h:285
_e_prefs::gui_welcome_page_show_recent
bool gui_welcome_page_show_recent
Definition prefs.h:257
_e_prefs::capture_device
char * capture_device
Definition prefs.h:283
_e_prefs::gui_window_title
char * gui_window_title
Definition prefs.h:247
_e_prefs::st_burst_windowlen
unsigned st_burst_windowlen
Definition prefs.h:375
_e_prefs::capture_pcap_ng
bool capture_pcap_ng
Definition prefs.h:296
_e_prefs::capture_devices_pmode
char * capture_devices_pmode
Definition prefs.h:290
_e_prefs::gui_packet_list_copy_format_options_for_keyboard_shortcut
copy_format_e gui_packet_list_copy_format_options_for_keyboard_shortcut
Definition prefs.h:346
_e_prefs::capture_no_extcap
bool capture_no_extcap
Definition prefs.h:306
_e_prefs::capture_devices_snaplen
char * capture_devices_snaplen
Definition prefs.h:289
_e_prefs::gui_tlskeylog_command
char * gui_tlskeylog_command
Definition prefs.h:239
_e_prefs::gui_update_channel
software_update_channel_e gui_update_channel
Definition prefs.h:333
_e_prefs::gui_ask_unsaved
bool gui_ask_unsaved
Definition prefs.h:242
_e_prefs::conversation_deinterlacing_key
int conversation_deinterlacing_key
Definition prefs.h:321
_e_prefs::gui_layout_content_3
layout_pane_content_e gui_layout_content_3
Definition prefs.h:263
_e_prefs::gui_packet_dialog_layout
splitter_layout_e gui_packet_dialog_layout
Definition prefs.h:264
_e_prefs::gui_fileopen_preview
unsigned gui_fileopen_preview
Definition prefs.h:237
_e_prefs::st_burst_showcount
bool st_burst_showcount
Definition prefs.h:373
_e_prefs::gui_start_title
char * gui_start_title
Definition prefs.h:249
_e_prefs::gui_packet_list_show_related
bool gui_packet_list_show_related
Definition prefs.h:348
_e_prefs::saved_at_version
char * saved_at_version
Definition prefs.h:337
_e_prefs::gui_colorized_bg
char * gui_colorized_bg
Definition prefs.h:223
_e_prefs::gui_interfaces_remote_display
bool gui_interfaces_remote_display
Definition prefs.h:269
_e_prefs::gui_io_graph_enable_legend
bool gui_io_graph_enable_legend
Definition prefs.h:273
_e_prefs::gui_toolbar_main_style
int gui_toolbar_main_style
Definition prefs.h:218
_e_prefs::gui_font_name
char * gui_font_name
Definition prefs.h:219
_e_prefs::display_abs_time_ascii
abs_time_format_e display_abs_time_ascii
Definition prefs.h:315
_e_prefs::gui_packet_list_hover_style
bool gui_packet_list_hover_style
Definition prefs.h:342
_e_prefs::gui_show_file_load_time
bool gui_show_file_load_time
Definition prefs.h:344
_e_prefs::capture_devices_filter
char * capture_devices_filter
Definition prefs.h:291
_e_prefs::st_burst_resolution
unsigned st_burst_resolution
Definition prefs.h:374
_e_prefs::gui_packet_header_column_definition
bool gui_packet_header_column_definition
Definition prefs.h:341
_e_prefs::gui_recent_files_count_max
unsigned gui_recent_files_count_max
Definition prefs.h:232
_e_prefs::st_format
int st_format
Definition prefs.h:384
_e_prefs::gui_prepend_window_title
char * gui_prepend_window_title
Definition prefs.h:248
_e_prefs::gui_layout_content_2
layout_pane_content_e gui_layout_content_2
Definition prefs.h:262
_e_prefs::capture_devices_hide
char * capture_devices_hide
Definition prefs.h:286
_e_prefs::tap_update_interval
unsigned tap_update_interval
Definition prefs.h:310
_e_prefs::gui_find_wrap
bool gui_find_wrap
Definition prefs.h:244
_e_prefs::gui_packet_list_multi_color_separator
gui_packet_list_multi_color_separator_e gui_packet_list_multi_color_separator
Definition prefs.h:357
_e_prefs::col_list
GList * col_list
Definition prefs.h:214
_e_prefs::gui_update_interval
unsigned gui_update_interval
Definition prefs.h:334
_e_prefs::gui_autocomplete_filter
bool gui_autocomplete_filter
Definition prefs.h:243
_e_prefs::capture_real_time
bool capture_real_time
Definition prefs.h:297
_e_prefs::gui_show_selected_packet
bool gui_show_selected_packet
Definition prefs.h:343
_e_prefs::incomplete_dissectors_check_debug
bool incomplete_dissectors_check_debug
Definition prefs.h:319
_e_prefs::gui_max_tree_depth
unsigned gui_max_tree_depth
Definition prefs.h:255
_e_prefs::gui_max_export_objects
unsigned gui_max_export_objects
Definition prefs.h:253
_e_prefs::gui_geometry_save_position
bool gui_geometry_save_position
Definition prefs.h:226
_e_prefs::gui_geometry_save_maximized
bool gui_geometry_save_maximized
Definition prefs.h:228
_e_prefs::gui_packet_list_sortable
bool gui_packet_list_sortable
Definition prefs.h:350
_e_prefs::st_sort_showfullname
bool st_sort_showfullname
Definition prefs.h:383
_e_prefs::gui_packet_list_multi_color_mode
gui_packet_list_multi_color_mode_e gui_packet_list_multi_color_mode
Definition prefs.h:354
_e_prefs::gui_interfaces_show_hidden
bool gui_interfaces_show_hidden
Definition prefs.h:268
_e_prefs::st_sort_rng_fixorder
bool st_sort_rng_fixorder
Definition prefs.h:379
_e_prefs::st_sort_rng_nameonly
bool st_sort_rng_nameonly
Definition prefs.h:380
_e_prefs::display_hidden_proto_items
bool display_hidden_proto_items
Definition prefs.h:313
_e_prefs::gui_geometry_save_size
bool gui_geometry_save_size
Definition prefs.h:227
_e_prefs::gui_rtp_player_use_disk1
bool gui_rtp_player_use_disk1
Definition prefs.h:365
_e_prefs::num_cols
unsigned num_cols
Definition prefs.h:215
_e_prefs::flow_graph_max_export_items
unsigned flow_graph_max_export_items
Definition prefs.h:369
_e_prefs::aggregation_fields_num
int aggregation_fields_num
Definition prefs.h:302
_e_prefs::gui_packet_list_multi_color_shift_percent
unsigned gui_packet_list_multi_color_shift_percent
Definition prefs.h:355
_e_prefs::gui_io_graph_automatic_update
bool gui_io_graph_automatic_update
Definition prefs.h:272
_e_prefs::gui_interfaces_hide_types
char * gui_interfaces_hide_types
Definition prefs.h:267
_e_prefs::st_sort_defdescending
bool st_sort_defdescending
Definition prefs.h:382
_e_prefs::extcap_save_on_start
bool extcap_save_on_start
Definition prefs.h:387
_e_prefs::gui_fileopen_dir
char * gui_fileopen_dir
Definition prefs.h:236
_e_prefs::ignore_dup_frames
bool ignore_dup_frames
Definition prefs.h:324
_e_prefs::capture_devices_buffersize
char * capture_devices_buffersize
Definition prefs.h:288
_e_prefs::gui_layout_content_1
layout_pane_content_e gui_layout_content_1
Definition prefs.h:261
_e_prefs::ignore_dup_frames_cache_entries
unsigned ignore_dup_frames_cache_entries
Definition prefs.h:325
_e_prefs::strict_conversation_tracking_heuristics
bool strict_conversation_tracking_heuristics
Definition prefs.h:320
_e_prefs::gui_fileopen_style
unsigned gui_fileopen_style
Definition prefs.h:235
_e_prefs::display_byte_fields_with_spaces
bool display_byte_fields_with_spaces
Definition prefs.h:314
_e_prefs::gui_debounce_timer
unsigned gui_debounce_timer
Definition prefs.h:335
_e_prefs::st_sort_casesensitve
bool st_sort_casesensitve
Definition prefs.h:378
_e_prefs::gui_packet_list_separator
bool gui_packet_list_separator
Definition prefs.h:340
_e_prefs::gui_plot_enable_auto_scroll
bool gui_plot_enable_auto_scroll
Definition prefs.h:278
_e_prefs::capture_monitor_mode
bool capture_monitor_mode
Definition prefs.h:295
_e_prefs::gui_packet_list_cached_rows_max
unsigned gui_packet_list_cached_rows_max
Definition prefs.h:351
_e_prefs::gui_max_tree_items
unsigned gui_max_tree_items
Definition prefs.h:254
_e_prefs::gui_recent_df_entries_max
unsigned gui_recent_df_entries_max
Definition prefs.h:231
_e_prefs::gui_version_placement
version_info_e gui_version_placement
Definition prefs.h:250
_e_prefs::enable_incomplete_dissectors_check
bool enable_incomplete_dissectors_check
Definition prefs.h:318
_e_prefs::st_sort_defcolflag
int st_sort_defcolflag
Definition prefs.h:381
_e_prefs::st_enable_burstinfo
bool st_enable_burstinfo
Definition prefs.h:372
_e_prefs::capture_prom_mode
bool capture_prom_mode
Definition prefs.h:294
_e_prefs::conv_machine_readable
bool conv_machine_readable
Definition prefs.h:386
_e_prefs::gui_layout_type
layout_type_e gui_layout_type
Definition prefs.h:260
_e_prefs::cols_hide_new
bool cols_hide_new
Definition prefs.h:329
_e_prefs::gui_packet_list_elide_mode
elide_mode_e gui_packet_list_elide_mode
Definition prefs.h:345
color_t
RGB color representation with 16-bit precision per channel.
Definition color.h:27
dissector_table
Definition packet.c:97
enum_val_t
Defines a single named value within an enumerated preference or option type.
Definition params.h:16
epan_uat
Represents a User Accessible Table (UAT), managing a set of user-editable records exposed to a dissec...
Definition uat-int.h:44
pref_custom_cbs
Callback table for a PREF_CUSTOM preference, providing lifecycle and serialization hooks.
Definition prefs-int.h:116
pref_module
Represents a preference module grouping related preferences under a named, hierarchical entry in the ...
Definition prefs-int.h:27
pref_module::use_gui
bool use_gui
Definition prefs-int.h:42
pref_module::description
const char * description
Definition prefs-int.h:30
pref_module::apply_cb
void(* apply_cb)(void)
Definition prefs-int.h:32
pref_module::title
const char * title
Definition prefs-int.h:29
preference
Definition prefs.c:187
preference::description
const char * description
Definition prefs.c:190
preference::title
const char * title
Definition prefs.c:189
preference::custom_cbs
struct pref_custom_cbs custom_cbs
Definition prefs.c:242
preference::max_value
uint32_t max_value
Definition prefs.c:233
preference::enumvals
const enum_val_t * enumvals
Definition prefs.c:235
preference::radio_buttons
bool radio_buttons
Definition prefs.c:236