21#include "ws_symbol_export.h"
30#define MAX_VAL_LEN 1024
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
36#define ST_MAX_BURSTBUCKETS 100
37#define DEF_GUI_DECIMAL_PLACES1 2
38#define DEF_GUI_DECIMAL_PLACES2 4
39#define DEF_GUI_DECIMAL_PLACES3 6
41#define CONV_DEINT_KEY_CAPFILE 0x01
42#define CONV_DEINT_KEY_INTERFACE 0x02
43#define CONV_DEINT_KEY_MAC 0x04
44#define CONV_DEINT_KEY_VLAN 0x08
66#define FO_STYLE_LAST_OPENED 0
67#define FO_STYLE_SPECIFIED 1
73#define TB_STYLE_ICONS 0
74#define TB_STYLE_TEXT 1
75#define TB_STYLE_BOTH 2
80#define COLOR_STYLE_DEFAULT 0
81#define COLOR_STYLE_FLAT 1
82#define COLOR_STYLE_GRADIENT 2
84#define COLOR_STYLE_ALPHA 0.25
86#define COLOR_SCHEME_DEFAULT 0
87#define COLOR_SCHEME_LIGHT 1
88#define COLOR_SCHEME_DARK 2
108 layout_pane_content_none,
109 layout_pane_content_plist,
110 layout_pane_content_pdetails,
111 layout_pane_content_pbytes,
112 layout_pane_content_pdiagram,
113} layout_pane_content_e;
119 version_welcome_only,
151 ABS_TIME_ASCII_NEVER,
153 ABS_TIME_ASCII_COLUMN,
154 ABS_TIME_ASCII_ALWAYS,
161 UPDATE_CHANNEL_DEVELOPMENT,
162 UPDATE_CHANNEL_STABLE
163} software_update_channel_e;
168 color_t st_client_fg, st_client_bg, st_server_fg, st_server_bg;
169 color_t gui_filter_valid_fg, gui_filter_invalid_fg, gui_filter_deprecated_fg;
170 color_t gui_filter_valid_bg, gui_filter_invalid_bg, gui_filter_deprecated_bg;
171 bool restore_filter_after_following_stream;
172 int gui_toolbar_main_style;
174 int gui_color_scheme;
177 int gui_active_style;
180 int gui_inactive_style;
185 char *gui_colorized_fg;
186 char *gui_colorized_bg;
187 bool gui_geometry_save_position;
188 bool gui_geometry_save_size;
189 bool gui_geometry_save_maximized;
190 unsigned gui_recent_df_entries_max;
191 unsigned gui_recent_files_count_max;
192 unsigned gui_fileopen_style;
193 char *gui_fileopen_dir;
194 unsigned gui_fileopen_preview;
195 char *gui_tlskeylog_command;
196 bool gui_ask_unsaved;
197 bool gui_autocomplete_filter;
199 char *gui_window_title;
200 char *gui_prepend_window_title;
201 char *gui_start_title;
202 version_info_e gui_version_placement;
203 unsigned gui_max_export_objects;
204 unsigned gui_max_tree_items;
205 unsigned gui_max_tree_depth;
206 bool gui_welcome_page_show_recent;
207 layout_type_e gui_layout_type;
208 layout_pane_content_e gui_layout_content_1;
209 layout_pane_content_e gui_layout_content_2;
210 layout_pane_content_e gui_layout_content_3;
211 splitter_layout_e gui_packet_dialog_layout;
212 char *gui_interfaces_hide_types;
213 bool gui_interfaces_show_hidden;
214 bool gui_interfaces_remote_display;
215 bool gui_io_graph_automatic_update;
216 bool gui_io_graph_enable_legend;
217 bool gui_plot_automatic_update;
218 bool gui_plot_enable_legend;
219 bool gui_plot_enable_auto_scroll;
220 bool gui_packet_details_show_byteview;
221 char *capture_device;
222 char *capture_devices_linktypes;
223 char *capture_devices_descr;
224 char *capture_devices_hide;
225 char *capture_devices_monitor_mode;
226 char *capture_devices_buffersize;
227 char *capture_devices_snaplen;
228 char *capture_devices_pmode;
229 char *capture_devices_filter;
230 bool capture_prom_mode;
231 bool capture_monitor_mode;
232 bool capture_pcap_ng;
233 bool capture_real_time;
234 unsigned capture_update_interval;
235 bool capture_no_interface_load;
236 bool capture_no_extcap;
237 bool capture_show_info;
238 GList *capture_columns;
239 unsigned tap_update_interval;
240 bool display_hidden_proto_items;
241 bool display_byte_fields_with_spaces;
242 abs_time_format_e display_abs_time_ascii;
243 bool enable_incomplete_dissectors_check;
244 bool incomplete_dissectors_check_debug;
245 bool strict_conversation_tracking_heuristics;
246 int conversation_deinterlacing_key;
247 bool ignore_dup_frames;
248 unsigned ignore_dup_frames_cache_entries;
249 bool filter_expressions_old;
251 bool gui_update_enabled;
252 software_update_channel_e gui_update_channel;
253 int gui_update_interval;
254 int gui_debounce_timer;
255 char *saved_at_version;
257 bool gui_packet_list_separator;
258 bool gui_packet_header_column_definition;
259 bool gui_packet_list_hover_style;
260 bool gui_show_selected_packet;
261 bool gui_show_file_load_time;
262 elide_mode_e gui_packet_list_elide_mode;
263 copy_format_e gui_packet_list_copy_format_options_for_keyboard_shortcut;
264 bool gui_packet_list_copy_text_with_aligned_columns;
265 bool gui_packet_list_show_related;
266 bool gui_packet_list_show_minimap;
267 bool gui_packet_list_sortable;
268 unsigned gui_packet_list_cached_rows_max;
269 int gui_decimal_places1;
270 int gui_decimal_places2;
271 int gui_decimal_places3;
272 bool gui_rtp_player_use_disk1;
273 bool gui_rtp_player_use_disk2;
274 unsigned flow_graph_max_export_items;
275 bool st_enable_burstinfo;
276 bool st_burst_showcount;
277 int st_burst_resolution;
278 int st_burst_windowlen;
279 bool st_sort_casesensitve;
280 bool st_sort_rng_fixorder;
281 bool st_sort_rng_nameonly;
282 int st_sort_defcolflag;
283 bool st_sort_defdescending;
284 bool st_sort_showfullname;
286 bool conv_machine_readable;
287 bool extcap_save_on_start;
614 const char *
title,
const char *
description,
const char **var,
bool for_writing);
875typedef unsigned (*pref_cb)(
pref_t *pref,
void *user_data);
972WS_DLL_PUBLIC
int write_prefs(
char **pf_path_return);
979 PREFS_SET_SYNTAX_ERR,
980 PREFS_SET_NO_SUCH_PREF,
void prefs_init(void)
Definition prefs.c:323
WS_DLL_PUBLIC module_t * prefs_register_codec(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:804
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:1577
WS_DLL_PUBLIC bool prefs_is_preference_obsolete(pref_t *pref)
Definition prefs.c:2060
WS_DLL_PUBLIC module_t * prefs_register_protocol_subtree(const char *subtree, int id, void(*apply_cb)(void))
Definition prefs.c:666
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg)
Definition prefs.c:5095
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:1816
e_prefs * read_prefs(void)
Definition prefs.c:4739
WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl)
Definition prefs.c:4200
void prefs_register_color_preference(module_t *module, const char *name, const char *title, const char *description, color_t *color)
Definition prefs.c:1834
WS_DLL_PUBLIC range_t * prefs_get_range_value(const char *module_name, const char *pref_name)
Definition prefs.c:1777
WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column)
Definition prefs.c:5391
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:1591
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:1633
WS_DLL_PUBLIC char * prefs_pref_type_description(pref_t *pref)
Definition prefs.c:6654
WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module, const char *name)
Definition prefs.c:2054
WS_DLL_PUBLIC module_t * prefs_find_module(const char *name)
Definition prefs.c:824
WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data)
Definition prefs.c:926
WS_DLL_PUBLIC void prefs_apply_all(void)
Definition prefs.c:956
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:1563
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:1968
WS_DLL_PUBLIC bool prefs_has_layout_pane_content(layout_pane_content_e layout_pane_content)
Definition prefs.c:5406
unsigned(* module_cb)(module_t *module, void *user_data)
Definition prefs.h:394
WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name)
Definition prefs.c:1170
WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name, const char *title, const char *description)
Definition prefs.c:1804
WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module, const char *name)
Definition prefs.c:2066
WS_DLL_PUBLIC const char * prefs_get_title_by_name(const char *name)
Definition prefs.c:1181
WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark)
Definition prefs.c:423
WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback, void *user_data)
Definition prefs.c:2397
WS_DLL_PUBLIC pref_t * prefs_find_preference(module_t *module, const char *pref)
Definition prefs.c:1161
WS_DLL_PUBLIC module_t * prefs_register_protocol_obsolete(int id)
Definition prefs.c:732
void prefs_deregister_protocol(int id)
Definition prefs.c:655
WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name)
Definition prefs.c:5367
WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module)
Definition prefs.c:587
prefs_set_pref_e
Definition prefs.h:977
WS_DLL_PUBLIC char * prefs_pref_to_str(pref_t *pref, pref_source_t source)
Definition prefs.c:6842
WS_DLL_PUBLIC const char * prefs_pref_type_name(pref_t *pref)
Definition prefs.c:6516
void prefs_cleanup(void)
Definition prefs.c:405
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:1192
WS_DLL_PUBLIC int write_prefs(char **pf_path_return)
Definition prefs.c:7167
WS_DLL_PUBLIC void prefs_reset(void)
Definition prefs.c:4630
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:1998
WS_DLL_PUBLIC module_t * prefs_register_protocol(int id, void(*apply_cb)(void))
Definition prefs.c:630
WS_DLL_PUBLIC GList * prefs_get_string_list(const char *str)
Definition prefs.c:4071
WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data)
Definition prefs.c:910
WS_DLL_PUBLIC void prefs_apply(module_t *module)
Definition prefs.c:968
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:1235
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)
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:1324
WS_DLL_PUBLIC module_t * prefs_register_stat(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:772
WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module)
Definition prefs.c:888
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:1949
WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name)
Definition prefs.c:5218
WS_DLL_PUBLIC char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve)
Definition prefs.c:5426
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:1984
Flags to control name resolution.
Definition addr_resolv.h:52
Definition prefs-int.h:75
Definition prefs-int.h:27
const char * description
Definition prefs-int.h:30
const char * name
Definition prefs-int.h:28
void(* apply_cb)(void)
Definition prefs-int.h:32
const char * title
Definition prefs-int.h:29
unsigned base
Definition prefs.c:255
const char * description
Definition prefs.c:220
const char * title
Definition prefs.c:219
const char * name
Definition prefs.c:218
struct pref_custom_cbs custom_cbs
Definition prefs.c:265
uint32_t max_value
Definition prefs.c:256
const enum_val_t * enumvals
Definition prefs.c:258
bool radio_buttons
Definition prefs.c:259