aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-03-21 06:31:39 +0000
committerGuy Harris <guy@alum.mit.edu>2012-03-21 06:31:39 +0000
commit7f5162352f74f10127304edfc0894515e3ff3b2e (patch)
treebfd7a11eea7b82425b4fb1bb054ff564fed785fe /ui
parent6090a6c6590bd034a50ab4a3e183fe7708324c16 (diff)
scan_local_interfaces() isn't in capture_opts.c; don't declare it in
capture_opts.h. (It arguably belongs somewhere other than in a file in ui/gtk, but, if so, move it there, e.g. to something in ui.) svn path=/trunk/; revision=41712
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/main.c4
-rw-r--r--ui/gtk/main.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index dbdede3e28..fd0f434bbc 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -3969,6 +3969,10 @@ guint get_interface_type(gchar *name, gchar *description)
return IF_WIRED;
}
+/*
+ * Fetch the list of local interfaces with capture_interface_list()
+ * and add it to *capture_opts.
+ */
void
scan_local_interfaces(capture_options* capture_opts, int *error)
{
diff --git a/ui/gtk/main.h b/ui/gtk/main.h
index e86d1c0f0f..872798c230 100644
--- a/ui/gtk/main.h
+++ b/ui/gtk/main.h
@@ -354,5 +354,10 @@ extern GtkWidget *pkt_scrollw;
void hide_interface(gchar* new_hide);
+/*
+ * Fetch the list of local interfaces with capture_interface_list()
+ * and add it to *capture_opts.
+ */
+extern void scan_local_interfaces(capture_options* capture_opts, int *error);
#endif /* __MAIN_H__ */