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
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)
75#define FO_STYLE_LAST_OPENED 0
76#define FO_STYLE_SPECIFIED 1
82#define TB_STYLE_ICONS 0
83#define TB_STYLE_TEXT 1
84#define TB_STYLE_BOTH 2
89#define COLOR_STYLE_DEFAULT 0
90#define COLOR_STYLE_FLAT 1
91#define COLOR_STYLE_GRADIENT 2
93#define COLOR_STYLE_ALPHA 0.25
95#define COLOR_SCHEME_DEFAULT 0
96#define COLOR_SCHEME_LIGHT 1
97#define COLOR_SCHEME_DARK 2
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;
128 version_welcome_only,
160 ABS_TIME_ASCII_NEVER,
162 ABS_TIME_ASCII_COLUMN,
163 ABS_TIME_ASCII_ALWAYS,
170 UPDATE_CHANNEL_DEVELOPMENT,
171 UPDATE_CHANNEL_STABLE
172} software_update_channel_e;
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;
183 int gui_color_scheme;
186 int gui_active_style;
189 int gui_inactive_style;
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;
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;
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;
263 bool gui_update_enabled;
264 software_update_channel_e gui_update_channel;
265 int gui_update_interval;
266 int gui_debounce_timer;
267 char *saved_at_version;
269 bool gui_packet_list_separator;
270 bool gui_packet_header_column_definition;
271 bool gui_packet_list_hover_style;
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 int gui_decimal_places1;
282 int gui_decimal_places2;
283 int gui_decimal_places3;
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 int st_burst_resolution;
290 int 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;
298 bool conv_machine_readable;
299 bool extcap_save_on_start;
626 const char *
title,
const char *
description,
const char **var,
bool for_writing);
886WS_DLL_PUBLIC
void prefs_set_preference_effect(
module_t* module,
887 const char*
name,
unsigned flags);
889typedef unsigned (*pref_cb)(
pref_t *pref,
void *user_data);
986WS_DLL_PUBLIC
int write_prefs(
char **pf_path_return);
993 PREFS_SET_SYNTAX_ERR,
994 PREFS_SET_NO_SUCH_PREF,
void prefs_init(void)
Definition prefs.c:324
WS_DLL_PUBLIC module_t * prefs_register_codec(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:805
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:1578
WS_DLL_PUBLIC bool prefs_is_preference_obsolete(pref_t *pref)
Definition prefs.c:2061
WS_DLL_PUBLIC module_t * prefs_register_protocol_subtree(const char *subtree, int id, void(*apply_cb)(void))
Definition prefs.c:667
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg)
Definition prefs.c:5109
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:1817
e_prefs * read_prefs(void)
Definition prefs.c:4753
WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl)
Definition prefs.c:4213
void prefs_register_color_preference(module_t *module, const char *name, const char *title, const char *description, color_t *color)
Definition prefs.c:1835
WS_DLL_PUBLIC range_t * prefs_get_range_value(const char *module_name, const char *pref_name)
Definition prefs.c:1778
WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column)
Definition prefs.c:5405
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:1592
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:1634
WS_DLL_PUBLIC char * prefs_pref_type_description(pref_t *pref)
Definition prefs.c:6668
WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module, const char *name)
Definition prefs.c:2055
WS_DLL_PUBLIC module_t * prefs_find_module(const char *name)
Definition prefs.c:825
WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data)
Definition prefs.c:927
WS_DLL_PUBLIC void prefs_apply_all(void)
Definition prefs.c:957
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:1564
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:1969
WS_DLL_PUBLIC bool prefs_has_layout_pane_content(layout_pane_content_e layout_pane_content)
Definition prefs.c:5420
unsigned(* module_cb)(module_t *module, void *user_data)
Definition prefs.h:406
WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name)
Definition prefs.c:1171
WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name, const char *title, const char *description)
Definition prefs.c:1805
WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module, const char *name)
Definition prefs.c:2067
WS_DLL_PUBLIC const char * prefs_get_title_by_name(const char *name)
Definition prefs.c:1182
WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark)
Definition prefs.c:424
WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback, void *user_data)
Definition prefs.c:2406
WS_DLL_PUBLIC pref_t * prefs_find_preference(module_t *module, const char *pref)
Definition prefs.c:1162
WS_DLL_PUBLIC module_t * prefs_register_protocol_obsolete(int id)
Definition prefs.c:733
void prefs_deregister_protocol(int id)
Definition prefs.c:656
WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name)
Definition prefs.c:5381
WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module)
Definition prefs.c:588
prefs_set_pref_e
Definition prefs.h:991
WS_DLL_PUBLIC char * prefs_pref_to_str(pref_t *pref, pref_source_t source)
Definition prefs.c:6856
WS_DLL_PUBLIC const char * prefs_pref_type_name(pref_t *pref)
Definition prefs.c:6530
void prefs_cleanup(void)
Definition prefs.c:406
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:1193
WS_DLL_PUBLIC int write_prefs(char **pf_path_return)
Definition prefs.c:7181
WS_DLL_PUBLIC void prefs_reset(void)
Definition prefs.c:4644
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:1999
WS_DLL_PUBLIC module_t * prefs_register_protocol(int id, void(*apply_cb)(void))
Definition prefs.c:631
WS_DLL_PUBLIC GList * prefs_get_string_list(const char *str)
Definition prefs.c:4084
WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data)
Definition prefs.c:911
WS_DLL_PUBLIC void prefs_apply(module_t *module)
Definition prefs.c:969
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:1236
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:1325
WS_DLL_PUBLIC module_t * prefs_register_stat(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:773
WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module)
Definition prefs.c:889
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:1950
WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name)
Definition prefs.c:5232
WS_DLL_PUBLIC char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve)
Definition prefs.c:5440
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:1985
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:256
const char * description
Definition prefs.c:221
const char * title
Definition prefs.c:220
const char * name
Definition prefs.c:219
struct pref_custom_cbs custom_cbs
Definition prefs.c:266
uint32_t max_value
Definition prefs.c:257
const enum_val_t * enumvals
Definition prefs.c:259
bool radio_buttons
Definition prefs.c:260