| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
prefs.h
Go to the documentation of this file.
1
11#ifndef __PREFS_H__
12#define __PREFS_H__
13
14#include <glib.h>
15
16#include <epan/params.h>
17#include <epan/range.h>
18
19#include <wsutil/color.h>
20
21#include "ws_symbol_export.h"
22
23#ifdef __cplusplus
24 extern "C" {
25#endif /* __cplusplus */
26
27#define DEF_WIDTH 750
28#define DEF_HEIGHT 550
29
30#define MAX_VAL_LEN 1024
31
32#define TAP_UPDATE_DEFAULT_INTERVAL 3000
33#define ST_DEF_BURSTRES 5
34#define ST_DEF_BURSTLEN 100
35#define ST_MAX_BURSTRES 600000 /* somewhat arbitrary limit of 10 minutes */
36#define ST_MAX_BURSTBUCKETS 100 /* somewhat arbitrary limit - more buckets degrade performance */
37#define DEF_GUI_DECIMAL_PLACES1 2
38#define DEF_GUI_DECIMAL_PLACES2 4
39#define DEF_GUI_DECIMAL_PLACES3 6
40
41#define CONV_DEINT_KEY_CAPFILE 0x01 /* unused yet */
42#define CONV_DEINT_KEY_INTERFACE 0x02
43#define CONV_DEINT_KEY_MAC 0x04
44#define CONV_DEINT_KEY_VLAN 0x08
45
46/* Bitmask of flags for the effect of a preference in Wireshark */
47#define PREF_EFFECT_DISSECTION (1u << 0)
48#define PREF_EFFECT_CAPTURE (1u << 1)
49#define PREF_EFFECT_GUI_LAYOUT (1u << 2)
50#define PREF_EFFECT_FIELDS (1u << 3)
51#define PREF_EFFECT_GUI (1u << 4)
52#define PREF_EFFECT_GUI_COLOR (1u << 5)
53#define PREF_EFFECT_AGGREGATION (1u << 6)
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/*
87 * Color styles.
88 */
89#define COLOR_STYLE_DEFAULT 0
90#define COLOR_STYLE_FLAT 1
91#define COLOR_STYLE_GRADIENT 2
92
93#define COLOR_STYLE_ALPHA 0.25
94
95#define COLOR_SCHEME_DEFAULT 0
96#define COLOR_SCHEME_LIGHT 1
97#define COLOR_SCHEME_DARK 2
98
99/*
100 * Types of layout of summary/details/hex panes.
101 */
102 typedef enum {
103 layout_unused, /* entry currently unused */
104 layout_type_5,
105 layout_type_2,
106 layout_type_1,
107 layout_type_4,
108 layout_type_3,
109 layout_type_6,
110 layout_type_max
111} layout_type_e;
112
113/*
114 * Types of pane.
115 */
116 typedef enum {
117 layout_pane_content_none,
118 layout_pane_content_plist,
119 layout_pane_content_pdetails,
120 layout_pane_content_pbytes,
121 layout_pane_content_pdiagram,
122} layout_pane_content_e;
123
124/*
125 * Places version information will show up
126 */
127 typedef enum {
128 version_welcome_only,
129 version_title_only,
130 version_both,
131 version_neither
132} version_info_e;
133
134 typedef enum {
135 layout_vertical,
136 layout_horizontal
137} splitter_layout_e;
138
139 typedef enum {
140 pref_default,
141 pref_stashed,
142 pref_current
143} pref_source_t;
144
145 typedef enum {
146 ELIDE_LEFT,
147 ELIDE_RIGHT,
148 ELIDE_MIDDLE,
149 ELIDE_NONE
150} elide_mode_e;
151
152 typedef enum {
153 COPY_FORMAT_TEXT,
154 COPY_FORMAT_CSV,
155 COPY_FORMAT_YAML,
156 COPY_FORMAT_HTML
157} copy_format_e;
158
159 typedef enum {
160 ABS_TIME_ASCII_NEVER,
161 ABS_TIME_ASCII_TREE,
162 ABS_TIME_ASCII_COLUMN,
163 ABS_TIME_ASCII_ALWAYS,
164} abs_time_format_e;
165
166/*
167 * Update channel.
168 */
169 typedef enum {
170 UPDATE_CHANNEL_DEVELOPMENT,
171 UPDATE_CHANNEL_STABLE
172} software_update_channel_e;
173
174 typedef struct _e_prefs {
175 GList *col_list;
176 unsigned num_cols;
177 color_t st_client_fg, st_client_bg, st_server_fg, st_server_bg;
178 color_t gui_filter_valid_fg, gui_filter_invalid_fg, gui_filter_deprecated_fg;
179 color_t gui_filter_valid_bg, gui_filter_invalid_bg, gui_filter_deprecated_bg;
180 bool restore_filter_after_following_stream;
181 int gui_toolbar_main_style;
182 char *gui_font_name;
183 int gui_color_scheme;
184 color_t gui_active_fg;
185 color_t gui_active_bg;
186 int gui_active_style;
187 color_t gui_inactive_fg;
188 color_t gui_inactive_bg;
189 int gui_inactive_style;
190 color_t gui_marked_fg;
191 color_t gui_marked_bg;
192 color_t gui_ignored_fg;
193 color_t gui_ignored_bg;
194 char *gui_colorized_fg;
195 char *gui_colorized_bg;
196 bool gui_geometry_save_position;
197 bool gui_geometry_save_size;
198 bool gui_geometry_save_maximized;
199 unsigned gui_recent_df_entries_max;
200 unsigned gui_recent_files_count_max;
201 unsigned gui_fileopen_style;
202 char *gui_fileopen_dir;
203 unsigned gui_fileopen_preview;
204 char *gui_tlskeylog_command;
205 bool gui_ask_unsaved;
206 bool gui_autocomplete_filter;
207 bool gui_find_wrap;
208 char *gui_window_title;
209 char *gui_prepend_window_title;
210 char *gui_start_title;
211 version_info_e gui_version_placement;
212 unsigned gui_max_export_objects;
213 unsigned gui_max_tree_items;
214 unsigned gui_max_tree_depth;
215 bool gui_welcome_page_show_recent;
216 layout_type_e gui_layout_type;
217 layout_pane_content_e gui_layout_content_1;
218 layout_pane_content_e gui_layout_content_2;
219 layout_pane_content_e gui_layout_content_3;
220 splitter_layout_e gui_packet_dialog_layout;
221 char *gui_interfaces_hide_types;
222 bool gui_interfaces_show_hidden;
223 bool gui_interfaces_remote_display;
224 bool gui_io_graph_automatic_update;
225 bool gui_io_graph_enable_legend;
226 bool gui_plot_automatic_update;
227 bool gui_plot_enable_legend;
228 bool gui_plot_enable_auto_scroll;
229 bool gui_packet_details_show_byteview;
230 char *capture_device;
231 char *capture_devices_linktypes;
232 char *capture_devices_descr;
233 char *capture_devices_hide;
234 char *capture_devices_monitor_mode;
235 char *capture_devices_buffersize;
236 char *capture_devices_snaplen;
237 char *capture_devices_pmode;
238 char *capture_devices_filter; /* XXX - Mostly unused. Deprecate? */
239 bool capture_prom_mode;
240 bool capture_monitor_mode;
241 bool capture_pcap_ng;
242 bool capture_real_time;
243 unsigned capture_update_interval;
244 bool enable_aggregation;
245 GList* aggregation_fields;
246 int aggregation_fields_num;
247 bool capture_no_interface_load;
248 bool capture_no_extcap;
249 bool capture_show_info;
250 GList *capture_columns;
251 unsigned tap_update_interval;
252 bool display_hidden_proto_items;
253 bool display_byte_fields_with_spaces;
254 abs_time_format_e display_abs_time_ascii;
255 bool enable_incomplete_dissectors_check;
256 bool incomplete_dissectors_check_debug;
257 bool strict_conversation_tracking_heuristics;
258 int conversation_deinterlacing_key;
259 bool ignore_dup_frames;
260 unsigned ignore_dup_frames_cache_entries;
261 bool filter_expressions_old; /* true if old filter expressions preferences were loaded. */
262 bool cols_hide_new; /* true if the new (index-based) gui.column.hide preference was loaded. */
263 bool gui_update_enabled;
264 software_update_channel_e gui_update_channel;
265 unsigned gui_update_interval;
266 unsigned gui_debounce_timer;
267 char *saved_at_version;
268 bool unknown_prefs; /* unknown or obsolete pref(s) */
269 bool gui_packet_list_separator;
270 bool gui_packet_header_column_definition;
271 bool gui_packet_list_hover_style; /* Enable/Disable mouse-over colorization */
272 bool gui_show_selected_packet;
273 bool gui_show_file_load_time;
274 elide_mode_e gui_packet_list_elide_mode;
275 copy_format_e gui_packet_list_copy_format_options_for_keyboard_shortcut;
276 bool gui_packet_list_copy_text_with_aligned_columns;
277 bool gui_packet_list_show_related;
278 bool gui_packet_list_show_minimap;
279 bool gui_packet_list_sortable;
280 unsigned gui_packet_list_cached_rows_max;
281 unsigned gui_decimal_places1; /* Used for type 1 calculations */
282 unsigned gui_decimal_places2; /* Used for type 2 calculations */
283 unsigned gui_decimal_places3; /* Used for type 3 calculations */
284 bool gui_rtp_player_use_disk1;
285 bool gui_rtp_player_use_disk2;
286 unsigned flow_graph_max_export_items;
287 bool st_enable_burstinfo;
288 bool st_burst_showcount;
289 unsigned st_burst_resolution;
290 unsigned st_burst_windowlen;
291 bool st_sort_casesensitve;
292 bool st_sort_rng_fixorder;
293 bool st_sort_rng_nameonly;
294 int st_sort_defcolflag;
295 bool st_sort_defdescending;
296 bool st_sort_showfullname;
297 int st_format;
298 bool conv_machine_readable;
299 bool extcap_save_on_start;
300} e_prefs;
301
302WS_DLL_PUBLIC e_prefs prefs;
303
304/*
305 * Routines to let modules that have preference settings register
306 * themselves by name, and to let them register preference settings
307 * by name.
308 */
309 struct pref_module;
310
311 struct pref_custom_cbs;
312
313 typedef struct pref_module module_t;
314
316 void prefs_init(const char** col_fmt, int num_cols);
317
319WS_DLL_PUBLIC void prefs_reset(const char* app_env_var_prefix, const char** col_fmt, int num_cols);
320
322 void prefs_cleanup(void);
323
327WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark);
328
337WS_DLL_PUBLIC module_t *prefs_register_protocol(int id, void (*apply_cb)(void));
338
345WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module);
346
352 void prefs_deregister_protocol(int id);
353
364WS_DLL_PUBLIC module_t *prefs_register_stat(const char *name, const char *title,
365 const char *description, void (*apply_cb)(void));
366
377WS_DLL_PUBLIC module_t *prefs_register_codec(const char *name, const char *title,
378 const char *description, void (*apply_cb)(void));
379
391WS_DLL_PUBLIC module_t *prefs_register_protocol_subtree(const char *subtree, int id,
392 void (*apply_cb)(void));
393
401WS_DLL_PUBLIC module_t *prefs_register_protocol_obsolete(int id);
402
406 typedef unsigned (*module_cb)(module_t *module, void *user_data);
407
413WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module);
414
426WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data);
427
443WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data);
444
451WS_DLL_PUBLIC void prefs_apply_all(void);
452
460WS_DLL_PUBLIC void prefs_apply(module_t *module);
461
462
463 struct preference;
464
465 typedef struct preference pref_t;
466
472WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name);
473
479WS_DLL_PUBLIC const char *prefs_get_title_by_name(const char *name);
480
489WS_DLL_PUBLIC module_t *prefs_find_module(const char *name);
490
500WS_DLL_PUBLIC pref_t *prefs_find_preference(module_t * module, const char *pref);
501
519WS_DLL_PUBLIC void prefs_register_uint_preference(module_t *module, const char *name,
520 const char *title, const char *description, unsigned base, unsigned *var);
521
522/*
523 * prefs_register_ callers must conform to the following:
524 *
525 * Names must be in lowercase letters only (underscore allowed).
526 * Titles and descriptions must be valid UTF-8 or NULL.
527 * Titles must be short (less than 80 characters)
528 * Titles must not contain newlines.
529 */
530
547WS_DLL_PUBLIC void prefs_register_bool_preference(module_t *module, const char *name,
548 const char *title, const char *description, bool *var);
549
570WS_DLL_PUBLIC void prefs_register_enum_preference(module_t *module, const char *name,
571 const char *title, const char *description, int *var,
572 const enum_val_t *enumvals, bool radio_buttons);
573
595WS_DLL_PUBLIC void prefs_register_string_preference(module_t *module, const char *name,
596 const char *title, const char *description, const char **var);
597
625WS_DLL_PUBLIC void prefs_register_filename_preference(module_t *module, const char *name,
626 const char *title, const char *description, const char **var, bool for_writing);
627
652WS_DLL_PUBLIC void prefs_register_directory_preference(module_t *module, const char *name,
653 const char *title, const char *description, const char **var);
654
672WS_DLL_PUBLIC void prefs_register_range_preference(module_t *module, const char *name,
673 const char *title, const char *description, range_t **var,
674 uint32_t max_value);
675
690WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name,
691 const char *title, const char *description);
692
710WS_DLL_PUBLIC void prefs_register_uat_preference(module_t *module,
711 const char *name, const char* title, const char *description, struct epan_uat* uat);
712
733 void prefs_register_color_preference(module_t *module, const char *name,
734 const char *title, const char *description, color_t *color);
735
756 void prefs_register_custom_preference(module_t *module, const char *name,
757 const char *title, const char *description, struct pref_custom_cbs* custom_cbs,
758 void** custom_data);
759
779 void prefs_register_decode_as_range_preference(module_t *module, const char *name,
780 const char *title, const char *description, range_t **var,
781 uint32_t max_value, const char *dissector_table, const char *dissector_description);
782
799WS_DLL_PUBLIC void prefs_register_password_preference(module_t *module, const char *name,
800 const char *title, const char *description, const char **var);
801
823WS_DLL_PUBLIC void prefs_register_dissector_preference(module_t *module, const char *name,
824 const char *title, const char *description, const char **var);
825
842WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module,
843 const char *name);
844
865WS_DLL_PUBLIC void prefs_register_custom_preference_TCP_Analysis(module_t *module, const char *name,
866 const char *title, const char *description, int *var,
867 const enum_val_t *enumvals, bool radio_buttons);
868
883WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module,
884 const char *name);
885
886WS_DLL_PUBLIC void prefs_set_preference_effect(module_t* module,
887 const char* name, unsigned flags);
888
889 typedef unsigned (*pref_cb)(pref_t *pref, void *user_data);
890
905WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback,
906 void *user_data);
907
918WS_DLL_PUBLIC GList *prefs_get_string_list(const char *str);
919
924WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl);
925
932WS_DLL_PUBLIC
933 const char *prefs_pref_type_name(pref_t *pref);
934
943WS_DLL_PUBLIC
944 char *prefs_pref_type_description(pref_t *pref);
945
953WS_DLL_PUBLIC
954 char *prefs_pref_to_str(pref_t *pref, pref_source_t source);
955
962WS_DLL_PUBLIC
963 bool prefs_is_preference_obsolete(pref_t *pref);
964
976 extern e_prefs *read_prefs(const char* app_env_var_prefix);
977
988WS_DLL_PUBLIC int write_prefs(const char* app_env_var_prefix, char **pf_path_return);
989
993 typedef enum {
994 PREFS_SET_OK, /* succeeded */
995 PREFS_SET_SYNTAX_ERR, /* syntax error in string */
996 PREFS_SET_NO_SUCH_PREF, /* no such preference */
997 PREFS_SET_OBSOLETE /* preference used to exist but no longer does */
998} prefs_set_pref_e;
999
1013WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg);
1014
1024WS_DLL_PUBLIC range_t* prefs_get_range_value(const char *module_name, const char* pref_name);
1025
1031WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name);
1032
1038WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name);
1039
1046WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column);
1047
1054WS_DLL_PUBLIC bool prefs_has_layout_pane_content (layout_pane_content_e layout_pane_content);
1055
1056#ifdef __cplusplus
1057}
1058#endif /* __cplusplus */
1059
1060#endif /* prefs.h */
1061
1062/*
1063 * Editor modelines - https://www.wireshark.org/tools/modelines.html
1064 *
1065 * Local variables:
1066 * c-basic-offset: 4
1067 * tab-width: 8
1068 * indent-tabs-mode: nil
1069 * End:
1070 *
1071 * vi: set shiftwidth=4 tabstop=8 expandtab:
1072 * :indentSize=4:tabSize=8:noTabs=true:
1073 */
color.h
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:754
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:1515
prefs_is_preference_obsolete
WS_DLL_PUBLIC bool prefs_is_preference_obsolete(pref_t *pref)
Definition prefs.c:1998
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:655
prefs_set_pref
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg)
Definition prefs.c:4996
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:1754
prefs_clear_string_list
WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl)
Definition prefs.c:4149
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:1772
prefs_get_range_value
WS_DLL_PUBLIC range_t * prefs_get_range_value(const char *module_name, const char *pref_name)
Definition prefs.c:1715
prefs_capture_options_dialog_column_is_visible
WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column)
Definition prefs.c:5292
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:1529
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:1571
prefs_pref_type_description
WS_DLL_PUBLIC char * prefs_pref_type_description(pref_t *pref)
Definition prefs.c:6555
prefs_register_obsolete_preference
WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module, const char *name)
Definition prefs.c:1992
prefs_find_module
WS_DLL_PUBLIC module_t * prefs_find_module(const char *name)
Definition prefs.c:762
prefs_modules_foreach_submodules
WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data)
Definition prefs.c:864
read_prefs
e_prefs * read_prefs(const char *app_env_var_prefix)
Definition prefs.c:4642
prefs_apply_all
WS_DLL_PUBLIC void prefs_apply_all(void)
Definition prefs.c:894
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:1501
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:1906
prefs_has_layout_pane_content
WS_DLL_PUBLIC bool prefs_has_layout_pane_content(layout_pane_content_e layout_pane_content)
Definition prefs.c:5307
module_cb
unsigned(* module_cb)(module_t *module, void *user_data)
Definition prefs.h:406
prefs_is_registered_protocol
WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name)
Definition prefs.c:1108
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:1742
prefs_set_preference_effect_fields
WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module, const char *name)
Definition prefs.c:2004
prefs_get_title_by_name
WS_DLL_PUBLIC const char * prefs_get_title_by_name(const char *name)
Definition prefs.c:1119
prefs_set_gui_theme_is_dark
WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark)
Definition prefs.c:425
prefs_pref_foreach
WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback, void *user_data)
Definition prefs.c:2342
prefs_find_preference
WS_DLL_PUBLIC pref_t * prefs_find_preference(module_t *module, const char *pref)
Definition prefs.c:1099
prefs_register_protocol_obsolete
WS_DLL_PUBLIC module_t * prefs_register_protocol_obsolete(int id)
Definition prefs.c:707
prefs_deregister_protocol
void prefs_deregister_protocol(int id)
Definition prefs.c:644
prefs_capture_device_monitor_mode
WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name)
Definition prefs.c:5268
prefs_register_module_alias
WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module)
Definition prefs.c:589
prefs_set_pref_e
prefs_set_pref_e
Definition prefs.h:993
prefs_pref_to_str
WS_DLL_PUBLIC char * prefs_pref_to_str(pref_t *pref, pref_source_t source)
Definition prefs.c:6743
prefs_pref_type_name
WS_DLL_PUBLIC const char * prefs_pref_type_name(pref_t *pref)
Definition prefs.c:6417
prefs_cleanup
void prefs_cleanup(void)
Definition prefs.c:407
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:1130
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:1936
write_prefs
WS_DLL_PUBLIC int write_prefs(const char *app_env_var_prefix, char **pf_path_return)
Definition prefs.c:7068
prefs_register_protocol
WS_DLL_PUBLIC module_t * prefs_register_protocol(int id, void(*apply_cb)(void))
Definition prefs.c:632
prefs_init
void prefs_init(const char **col_fmt, int num_cols)
Definition prefs.c:322
prefs_get_string_list
WS_DLL_PUBLIC GList * prefs_get_string_list(const char *str)
Definition prefs.c:4020
prefs_modules_foreach
WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data)
Definition prefs.c:848
prefs_apply
WS_DLL_PUBLIC void prefs_apply(module_t *module)
Definition prefs.c:906
prefs_reset
WS_DLL_PUBLIC void prefs_reset(const char *app_env_var_prefix, const char **col_fmt, int num_cols)
Definition prefs.c:4529
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:1173
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:1262
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:734
prefs_module_has_submodules
WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module)
Definition prefs.c:826
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)
Definition prefs.c:1887
prefs_is_capture_device_hidden
WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name)
Definition prefs.c:5119
string_to_name_resolve
WS_DLL_PUBLIC char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve)
Definition prefs.c:5327
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:1922
range.h
_e_addr_resolve
Flags to control name resolution.
Definition addr_resolv.h:52
_e_prefs
Definition prefs.h:174
color_t
RGB color representation with 16-bit precision per channel.
Definition color.h:27
dissector_table
Definition packet.c:97
enum_val_t
Definition params.h:23
epan_range
Definition range.h:41
epan_uat
Definition uat-int.h:40
pref_custom_cbs
Definition prefs-int.h:69
pref_module
Definition prefs-int.h:27
pref_module::description
const char * description
Definition prefs-int.h:30
pref_module::name
const char * name
Definition prefs-int.h:28
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:216
preference::base
unsigned base
Definition prefs.c:254
preference::description
const char * description
Definition prefs.c:219
preference::title
const char * title
Definition prefs.c:218
preference::name
const char * name
Definition prefs.c:217
preference::custom_cbs
struct pref_custom_cbs custom_cbs
Definition prefs.c:264
preference::max_value
uint32_t max_value
Definition prefs.c:255
preference::enumvals
const enum_val_t * enumvals
Definition prefs.c:257
preference::radio_buttons
bool radio_buttons
Definition prefs.c:258