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_text_valid, gui_text_invalid, gui_text_deprecated;
170 bool restore_filter_after_following_stream;
171 int gui_toolbar_main_style;
173 int gui_color_scheme;
176 int gui_active_style;
179 int gui_inactive_style;
184 char *gui_colorized_fg;
185 char *gui_colorized_bg;
186 bool gui_geometry_save_position;
187 bool gui_geometry_save_size;
188 bool gui_geometry_save_maximized;
189 unsigned gui_recent_df_entries_max;
190 unsigned gui_recent_files_count_max;
191 unsigned gui_fileopen_style;
192 char *gui_fileopen_dir;
193 unsigned gui_fileopen_preview;
194 char *gui_tlskeylog_command;
195 bool gui_ask_unsaved;
196 bool gui_autocomplete_filter;
198 char *gui_window_title;
199 char *gui_prepend_window_title;
200 char *gui_start_title;
201 version_info_e gui_version_placement;
202 unsigned gui_max_export_objects;
203 unsigned gui_max_tree_items;
204 unsigned gui_max_tree_depth;
205 bool gui_welcome_page_show_recent;
206 layout_type_e gui_layout_type;
207 layout_pane_content_e gui_layout_content_1;
208 layout_pane_content_e gui_layout_content_2;
209 layout_pane_content_e gui_layout_content_3;
210 splitter_layout_e gui_packet_dialog_layout;
211 char *gui_interfaces_hide_types;
212 bool gui_interfaces_show_hidden;
213 bool gui_interfaces_remote_display;
214 bool gui_io_graph_automatic_update;
215 bool gui_io_graph_enable_legend;
216 bool gui_packet_details_show_byteview;
217 char *capture_device;
218 char *capture_devices_linktypes;
219 char *capture_devices_descr;
220 char *capture_devices_hide;
221 char *capture_devices_monitor_mode;
222 char *capture_devices_buffersize;
223 char *capture_devices_snaplen;
224 char *capture_devices_pmode;
225 char *capture_devices_filter;
226 bool capture_prom_mode;
227 bool capture_monitor_mode;
228 bool capture_pcap_ng;
229 bool capture_real_time;
230 unsigned capture_update_interval;
231 bool capture_no_interface_load;
232 bool capture_no_extcap;
233 bool capture_show_info;
234 GList *capture_columns;
235 unsigned tap_update_interval;
236 bool display_hidden_proto_items;
237 bool display_byte_fields_with_spaces;
238 abs_time_format_e display_abs_time_ascii;
239 bool enable_incomplete_dissectors_check;
240 bool incomplete_dissectors_check_debug;
241 bool strict_conversation_tracking_heuristics;
242 int conversation_deinterlacing_key;
243 bool ignore_dup_frames;
244 unsigned ignore_dup_frames_cache_entries;
245 bool filter_expressions_old;
247 bool gui_update_enabled;
248 software_update_channel_e gui_update_channel;
249 int gui_update_interval;
250 int gui_debounce_timer;
251 char *saved_at_version;
253 bool gui_packet_list_separator;
254 bool gui_packet_header_column_definition;
255 bool gui_packet_list_hover_style;
256 bool gui_show_selected_packet;
257 bool gui_show_file_load_time;
258 elide_mode_e gui_packet_list_elide_mode;
259 copy_format_e gui_packet_list_copy_format_options_for_keyboard_shortcut;
260 bool gui_packet_list_copy_text_with_aligned_columns;
261 bool gui_packet_list_show_related;
262 bool gui_packet_list_show_minimap;
263 bool gui_packet_list_sortable;
264 unsigned gui_packet_list_cached_rows_max;
265 int gui_decimal_places1;
266 int gui_decimal_places2;
267 int gui_decimal_places3;
268 bool gui_rtp_player_use_disk1;
269 bool gui_rtp_player_use_disk2;
270 unsigned flow_graph_max_export_items;
271 bool st_enable_burstinfo;
272 bool st_burst_showcount;
273 int st_burst_resolution;
274 int st_burst_windowlen;
275 bool st_sort_casesensitve;
276 bool st_sort_rng_fixorder;
277 bool st_sort_rng_nameonly;
278 int st_sort_defcolflag;
279 bool st_sort_defdescending;
280 bool st_sort_showfullname;
281 bool extcap_save_on_start;
608 const char *
title,
const char *
description,
const char **var,
bool for_writing);
890typedef unsigned (*pref_cb)(
pref_t *pref,
void *user_data);
978WS_DLL_PUBLIC
int write_prefs(
char **pf_path_return);
985 PREFS_SET_SYNTAX_ERR,
986 PREFS_SET_NO_SUCH_PREF,
void prefs_init(void)
Definition prefs.c:353
WS_DLL_PUBLIC module_t * prefs_register_codec(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:835
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:1607
WS_DLL_PUBLIC module_t * prefs_register_protocol_subtree(const char *subtree, int id, void(*apply_cb)(void))
Definition prefs.c:697
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg)
Definition prefs.c:5086
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:1846
e_prefs * read_prefs(void)
Definition prefs.c:4730
WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl)
Definition prefs.c:4210
void prefs_register_color_preference(module_t *module, const char *name, const char *title, const char *description, color_t *color)
Definition prefs.c:1880
WS_DLL_PUBLIC range_t * prefs_get_range_value(const char *module_name, const char *pref_name)
Definition prefs.c:1807
WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column)
Definition prefs.c:5382
bool prefs_get_preference_obsolete(pref_t *pref)
Definition prefs.c:2118
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:1621
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:1663
prefs_set_pref_e prefs_set_preference_obsolete(pref_t *pref)
Definition prefs.c:2130
WS_DLL_PUBLIC char * prefs_pref_type_description(pref_t *pref)
Definition prefs.c:6652
WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module, const char *name)
Definition prefs.c:2100
WS_DLL_PUBLIC module_t * prefs_find_module(const char *name)
Definition prefs.c:855
WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data)
Definition prefs.c:957
WS_DLL_PUBLIC void prefs_apply_all(void)
Definition prefs.c:987
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:1593
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:2014
WS_DLL_PUBLIC bool prefs_has_layout_pane_content(layout_pane_content_e layout_pane_content)
Definition prefs.c:5397
unsigned(* module_cb)(module_t *module, void *user_data)
Definition prefs.h:388
WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name)
Definition prefs.c:1200
WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name, const char *title, const char *description)
Definition prefs.c:1834
WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module, const char *name)
Definition prefs.c:2106
WS_DLL_PUBLIC const char * prefs_get_title_by_name(const char *name)
Definition prefs.c:1211
WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark)
Definition prefs.c:457
WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback, void *user_data)
Definition prefs.c:2453
WS_DLL_PUBLIC void prefs_register_uat_preference_qt(module_t *module, const char *name, const char *title, const char *description, struct epan_uat *uat)
Definition prefs.c:1861
WS_DLL_PUBLIC pref_t * prefs_find_preference(module_t *module, const char *pref)
Definition prefs.c:1191
WS_DLL_PUBLIC module_t * prefs_register_protocol_obsolete(int id)
Definition prefs.c:763
void prefs_deregister_protocol(int id)
Definition prefs.c:686
WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name)
Definition prefs.c:5358
WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module)
Definition prefs.c:618
prefs_set_pref_e
Definition prefs.h:983
WS_DLL_PUBLIC char * prefs_pref_to_str(pref_t *pref, pref_source_t source)
Definition prefs.c:6847
WS_DLL_PUBLIC const char * prefs_pref_type_name(pref_t *pref)
Definition prefs.c:6510
void prefs_cleanup(void)
Definition prefs.c:439
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:1222
WS_DLL_PUBLIC int write_prefs(char **pf_path_return)
Definition prefs.c:7180
WS_DLL_PUBLIC void prefs_reset(void)
Definition prefs.c:4621
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:2044
WS_DLL_PUBLIC module_t * prefs_register_protocol(int id, void(*apply_cb)(void))
Definition prefs.c:661
WS_DLL_PUBLIC GList * prefs_get_string_list(const char *str)
Definition prefs.c:4081
WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data)
Definition prefs.c:941
WS_DLL_PUBLIC void prefs_apply(module_t *module)
Definition prefs.c:999
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:1265
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:1354
WS_DLL_PUBLIC module_t * prefs_register_stat(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:803
WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module)
Definition prefs.c:919
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:1995
WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name)
Definition prefs.c:5209
WS_DLL_PUBLIC char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve)
Definition prefs.c:5417
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:2030
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:285
const char * description
Definition prefs.c:251
const char * title
Definition prefs.c:250
const char * name
Definition prefs.c:249
struct pref_custom_cbs custom_cbs
Definition prefs.c:295
uint32_t max_value
Definition prefs.c:286
const enum_val_t * enumvals
Definition prefs.c:288
bool radio_buttons
Definition prefs.c:289