20 #include <epan/params.h> 23 #include <wsutil/color.h> 25 #include "ws_symbol_export.h" 28 #define PR_DEST_FILE 1 31 #define DEF_HEIGHT 550 33 #define MAX_VAL_LEN 1024 35 #define TAP_UPDATE_DEFAULT_INTERVAL 3000 36 #define ST_DEF_BURSTRES 5 37 #define ST_DEF_BURSTLEN 100 38 #define ST_MAX_BURSTRES 600000 39 #define ST_MAX_BURSTBUCKETS 100 52 char string_to_name_resolve(
const char *
string,
struct _e_addr_resolve *name_resolve);
57 #define FO_STYLE_LAST_OPENED 0 58 #define FO_STYLE_SPECIFIED 1 63 #define TB_STYLE_ICONS 0 64 #define TB_STYLE_TEXT 1 65 #define TB_STYLE_BOTH 2 85 layout_pane_content_none,
86 layout_pane_content_plist,
87 layout_pane_content_pdetails,
88 layout_pane_content_pbytes
89 } layout_pane_content_e;
104 version_welcome_only,
128 UPDATE_CHANNEL_DEVELOPMENT,
129 UPDATE_CHANNEL_STABLE
130 } software_update_channel_e;
139 color_t st_client_fg, st_client_bg, st_server_fg, st_server_bg;
140 color_t gui_text_valid, gui_text_invalid, gui_text_deprecated;
141 gboolean gui_expert_composite_eyecandy;
142 gboolean filter_toolbar_show_in_statusbar;
143 gboolean restore_filter_after_following_stream;
144 gint gui_ptree_line_style;
145 gint gui_ptree_expander_style;
146 gint gui_toolbar_main_style;
147 gint gui_toolbar_filter_style;
148 gchar *gui_qt_font_name;
153 gchar *gui_colorized_fg;
154 gchar *gui_colorized_bg;
155 gboolean gui_geometry_save_position;
156 gboolean gui_geometry_save_size;
157 gboolean gui_geometry_save_maximized;
158 console_open_e gui_console_open;
159 guint gui_recent_df_entries_max;
160 guint gui_recent_files_count_max;
161 guint gui_fileopen_style;
162 gchar *gui_fileopen_dir;
163 guint gui_fileopen_preview;
164 gboolean gui_ask_unsaved;
165 gboolean gui_find_wrap;
166 gboolean gui_use_pref_save;
167 gchar *gui_webbrowser;
168 gchar *gui_window_title;
169 gchar *gui_prepend_window_title;
170 gchar *gui_start_title;
171 version_info_e gui_version_placement;
172 layout_type_e gui_layout_type;
173 layout_pane_content_e gui_layout_content_1;
174 layout_pane_content_e gui_layout_content_2;
175 layout_pane_content_e gui_layout_content_3;
176 gchar *gui_interfaces_hide_types;
177 gboolean gui_interfaces_show_hidden;
178 #ifdef HAVE_PCAP_REMOTE 179 gboolean gui_interfaces_remote_display;
181 gint console_log_level;
182 gchar *capture_device;
183 gchar *capture_devices_linktypes;
184 gchar *capture_devices_descr;
185 gchar *capture_devices_hide;
186 gchar *capture_devices_monitor_mode;
187 #ifdef CAN_SET_CAPTURE_BUFFER_SIZE 188 gchar *capture_devices_buffersize;
190 gchar *capture_devices_snaplen;
191 gchar *capture_devices_pmode;
192 gchar *capture_devices_filter;
193 gboolean capture_prom_mode;
194 gboolean capture_pcap_ng;
195 gboolean capture_real_time;
196 gboolean capture_auto_scroll;
197 gboolean capture_no_extcap;
198 gboolean capture_show_info;
199 GList *capture_columns;
200 guint tap_update_interval;
201 gboolean display_hidden_proto_items;
202 gboolean display_byte_fields_with_spaces;
203 gboolean enable_incomplete_dissectors_check;
204 gboolean incomplete_dissectors_check_debug;
205 gboolean strict_conversation_tracking_heuristics;
206 gboolean gui_update_enabled;
207 software_update_channel_e gui_update_channel;
208 gint gui_update_interval;
209 gchar *saved_at_version;
210 gboolean unknown_prefs;
211 gboolean unknown_colorfilters;
212 gboolean gui_qt_packet_list_separator;
213 gboolean gui_qt_show_selected_packet;
214 gboolean gui_qt_show_file_load_time;
215 gboolean gui_packet_editor;
216 elide_mode_e gui_packet_list_elide_mode;
217 gboolean gui_packet_list_show_related;
218 gboolean gui_packet_list_show_minimap;
219 gboolean st_enable_burstinfo;
220 gboolean st_burst_showcount;
221 gint st_burst_resolution;
222 gint st_burst_windowlen;
223 gboolean st_sort_casesensitve;
224 gboolean st_sort_rng_fixorder;
225 gboolean st_sort_rng_nameonly;
226 gint st_sort_defcolflag;
227 gboolean st_sort_defdescending;
228 gboolean st_sort_showfullname;
229 gboolean extcap_save_on_start;
246 void prefs_init(
void);
249 WS_DLL_PUBLIC
void prefs_reset(
void);
252 void prefs_cleanup(
void);
255 WS_DLL_PUBLIC
void prefs_set_gui_theme_is_dark(gboolean is_dark);
260 WS_DLL_PUBLIC module_t *prefs_register_protocol(
int id,
void (*
apply_cb)(
void));
265 void prefs_deregister_protocol(
int id);
277 WS_DLL_PUBLIC module_t *prefs_register_stat(
const char *
name,
const char *
title,
290 WS_DLL_PUBLIC module_t *prefs_register_codec(
const char *name,
const char *title,
291 const char *description,
void (*
apply_cb)(
void));
297 #define PREFERENCE_GROUPING 298 WS_DLL_PUBLIC module_t *prefs_register_protocol_subtree(
const char *subtree,
int id,
305 module_t *prefs_register_protocol_obsolete(
int id);
310 typedef guint (*module_cb)(module_t *module, gpointer user_data);
315 WS_DLL_PUBLIC gboolean prefs_module_has_submodules(module_t *module);
325 WS_DLL_PUBLIC guint prefs_modules_foreach(module_cb callback, gpointer user_data);
337 WS_DLL_PUBLIC guint prefs_modules_foreach_submodules(module_t *module, module_cb callback, gpointer user_data);
345 WS_DLL_PUBLIC
void prefs_apply_all(
void);
353 WS_DLL_PUBLIC
void prefs_apply(module_t *module);
363 WS_DLL_PUBLIC gboolean prefs_is_registered_protocol(
const char *name);
368 WS_DLL_PUBLIC
const char *prefs_get_title_by_name(
const char *name);
378 WS_DLL_PUBLIC module_t *prefs_find_module(
const char *name);
389 WS_DLL_PUBLIC pref_t *prefs_find_preference(module_t * module,
const char *pref);
394 WS_DLL_PUBLIC
void prefs_register_uint_preference(module_t *module,
const char *name,
395 const char *title,
const char *description, guint
base, guint *var);
409 WS_DLL_PUBLIC
void prefs_register_bool_preference(module_t *module,
const char *name,
410 const char *title,
const char *description, gboolean *var);
415 WS_DLL_PUBLIC
void prefs_register_enum_preference(module_t *module,
const char *name,
416 const char *title,
const char *description, gint *var,
422 WS_DLL_PUBLIC
void prefs_register_string_preference(module_t *module,
const char *name,
423 const char *title,
const char *description,
const char **var);
431 WS_DLL_PUBLIC
void prefs_register_filename_preference(module_t *module,
const char *name,
432 const char *title,
const char *description,
const char **var, gboolean for_writing);
440 WS_DLL_PUBLIC
void prefs_register_directory_preference(module_t *module,
const char *name,
441 const char *title,
const char *description,
const char **var);
446 WS_DLL_PUBLIC
void prefs_register_range_preference(module_t *module,
const char *name,
447 const char *title,
const char *description,
range_t **var,
453 WS_DLL_PUBLIC
void prefs_register_static_text_preference(module_t *module,
const char *name,
454 const char *title,
const char *description);
460 WS_DLL_PUBLIC
void prefs_register_uat_preference(module_t *module,
461 const char *name,
const char* title,
const char *description,
struct epan_uat* uat);
467 WS_DLL_PUBLIC
void prefs_register_uat_preference_qt(module_t *module,
468 const char *name,
const char* title,
const char *description,
struct epan_uat* uat);
477 void prefs_register_color_preference(module_t *module,
const char *name,
478 const char *title,
const char *description,
color_t *color);
486 void prefs_register_custom_preference(module_t *module,
const char *name,
493 void prefs_register_decode_as_range_preference(module_t *module,
const char *name,
494 const char *title,
const char *description,
range_t **var,
501 void prefs_register_decode_as_preference(module_t *module,
const char *name,
502 const char *title,
const char *description, guint *var);
507 WS_DLL_PUBLIC
void prefs_register_obsolete_preference(module_t *module,
511 typedef guint (*pref_cb)(pref_t *pref, gpointer user_data);
520 WS_DLL_PUBLIC guint prefs_pref_foreach(module_t *module, pref_cb callback,
526 WS_DLL_PUBLIC GList *prefs_get_string_list(
const gchar *str);
529 WS_DLL_PUBLIC
void prefs_clear_string_list(GList *sl);
538 const char *prefs_pref_type_name(pref_t *pref);
549 char *prefs_pref_type_description(pref_t *pref);
559 char *prefs_pref_to_str(pref_t *pref, pref_source_t source);
568 extern e_prefs *read_prefs(
void);
574 WS_DLL_PUBLIC
int write_prefs(
char **);
581 PREFS_SET_SYNTAX_ERR,
582 PREFS_SET_NO_SUCH_PREF,
595 WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(
char *prefarg,
char **errmsg);
602 gboolean prefs_get_preference_obsolete(pref_t *pref);
603 prefs_set_pref_e prefs_set_preference_obsolete(pref_t *pref);
609 WS_DLL_PUBLIC guint prefs_get_uint_value(
const char *module_name,
const char* pref_name);
615 WS_DLL_PUBLIC
range_t* prefs_get_range_value(
const char *module_name,
const char* pref_name);
620 WS_DLL_PUBLIC gboolean prefs_is_capture_device_hidden(
const char *name);
625 WS_DLL_PUBLIC gboolean prefs_capture_device_monitor_mode(
const char *name);
627 WS_DLL_PUBLIC gboolean prefs_capture_options_dialog_column_is_visible(
const gchar *column);
632 WS_DLL_PUBLIC gboolean prefs_has_layout_pane_content (layout_pane_content_e layout_pane_content);
Flags to control name resolution.
Definition: addr_resolv.h:48
const char * description
Definition: prefs-int.h:30
Definition: prefs-int.h:27
const char * title
Definition: prefs-int.h:29
guint32 max_value
Definition: prefs.c:231
const enum_val_t * enumvals
Definition: prefs.c:233
Definition: prefs-int.h:74
Definition: sttype-range.c:22
struct pref_custom_cbs custom_cbs
Definition: prefs.c:240
gboolean radio_buttons
Definition: prefs.c:234
guint base
Definition: prefs.c:230
const char * name
Definition: prefs-int.h:28
void(* apply_cb)(void)
Definition: prefs-int.h:31