#define MAX_VAL_LEN 1024
#define RTP_PLAYER_DEFAULT_VISIBLE 4
-
-/* only GTK1 *or* GTK2 font_name should be used */
-/* (we need to keep both in the preferences file but will only use the one suitable for the programs GTK version used) */
-#if GTK_MAJOR_VERSION < 2
-#define PREFS_GUI_FONT_NAME gui_font_name1
-#else
-#define PREFS_GUI_FONT_NAME gui_font_name2
-#endif
+#define TAP_UPDATE_DEFAULT_INTERVAL 3000
/*
* Convert a string listing name resolution types to a bitmask of
gint gui_ptree_expander_style;
gboolean gui_hex_dump_highlight_style;
gint gui_toolbar_main_style;
- gchar *gui_font_name1;
- gchar *gui_font_name2;
+ gchar *gui_font_name;
color_t gui_marked_fg;
color_t gui_marked_bg;
gchar *gui_colorized_fg;
gboolean gui_geometry_save_position;
gboolean gui_geometry_save_size;
gboolean gui_geometry_save_maximized;
+ gboolean gui_macosx_style;
console_open_e gui_console_open;
+ guint gui_recent_df_entries_max;
guint gui_recent_files_count_max;
guint gui_fileopen_style;
gchar *gui_fileopen_dir;
gboolean gui_use_pref_save;
gchar *gui_webbrowser;
gchar *gui_window_title;
+ gchar *gui_start_title;
+ gboolean gui_version_in_start_page;
layout_type_e gui_layout_type;
layout_pane_content_e gui_layout_content_1;
layout_pane_content_e gui_layout_content_2;
guint32 name_resolve;
gint name_resolve_concurrency;
gchar *capture_device;
+ gchar *capture_devices_linktypes;
gchar *capture_devices_descr;
gchar *capture_devices_hide;
gboolean capture_prom_mode;
gboolean capture_auto_scroll;
gboolean capture_show_info;
guint rtp_player_max_visible;
+ guint tap_update_interval;
+ gboolean display_hidden_proto_items;
} e_prefs;
WS_VAR_IMPORT e_prefs prefs;
/*
* Register that a protocol has preferences and group it under a single
- * subtree
+ * subtree
*/
#define PREFERENCE_GROUPING
-extern module_t *prefs_register_protocol_subtree(const char *subtree, int id,
+extern module_t *prefs_register_protocol_subtree(const char *subtree, int id,
void (*apply_cb)(void));
/*
/*
* Register a preference with an Boolean value.
+ * Note that the name must be in lowercase letters only (underscore allowed).
*/
extern void prefs_register_bool_preference(module_t *module, const char *name,
const char *title, const char *description, gboolean *var);
extern guint prefs_pref_foreach(module_t *module, pref_cb callback,
gpointer user_data);
+/* Parse through a list of comma-separated, possibly quoted strings.
+ * Return a list of the string data.
+ */
+extern GList *prefs_get_string_list(gchar *str);
+
+/* Clear the given list of string data. */
+extern void prefs_clear_string_list(GList *sl);
+
/*
* Register all non-dissector modules' preferences.
*/
extern prefs_set_pref_e prefs_set_pref(char *prefarg);
+/*
+ * Returns TRUE if the given device is hidden
+ */
+extern gboolean prefs_is_capture_device_hidden(const char *name);
+
#endif /* prefs.h */