aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-15 19:38:13 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-15 19:38:13 +0000
commite1e576c11b894bb34030729ee48cc4d71cc7d4eb (patch)
tree73fa309ee3867342ee0e8b7bf408b095d811bdb3 /gtk/capture_dlg.h
parent2de348060c2536940e0ba48ad059dc3b028a8302 (diff)
Support monitor mode in the capture preferences.
Use prefs_is_capture_device_hidden() to find out whether a device should be hidden - don't scan the list of hidden devices ourselves. svn path=/trunk/; revision=32820
Diffstat (limited to 'gtk/capture_dlg.h')
-rw-r--r--gtk/capture_dlg.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/gtk/capture_dlg.h b/gtk/capture_dlg.h
index 96a8e4e878..c74792c43f 100644
--- a/gtk/capture_dlg.h
+++ b/gtk/capture_dlg.h
@@ -71,12 +71,26 @@ void capture_start_confirmed(void);
void
capture_air_cb(GtkWidget *widget, gpointer data);
-/** Get linktype for interface
+/*
+ * We remember the capture settings for each interface when a capture
+ * is started on it; the next time we select that interface we start
+ * out with those settings.
+ *
+ * XXX - we currently only do that for monitor mode and the link-layer
+ * type; arguably we should do it for the snapshot length, and perhaps
+ * promiscuous mode.
+ */
+typedef struct {
+ gboolean monitor_mode;
+ int linktype;
+} cap_settings_t;
+
+/** Get capture settings for interface
*
* @param if_name interface name
*/
-gint
-capture_get_linktype (gchar *if_name);
+cap_settings_t
+capture_get_cap_settings (gchar *if_name);
#ifdef HAVE_PCAP_REMOTE