summaryrefslogtreecommitdiff
path: root/ui/gtk/main.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-28 08:25:17 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-28 08:25:17 +0000
commit4e893a71fe7f4597d2ad9d79637ab71f486a8d4d (patch)
tree546ec56c41c5edae8b5318499dc53f976823d77a /ui/gtk/main.h
parent5e7ca579ceeb21b355831bd2c5de6742e8e9a14b (diff)
downloadwireshark-4e893a71fe7f4597d2ad9d79637ab71f486a8d4d.tar.gz
Make scan_local_interfaces() local to ui/gtk/main.c; widgets/windows
that want a list of interfaces should either call fill_in_local_interfaces() to make sure the list has been populated at least once or refresh_local_interface_lists() if they want the list to be rescanned. Also make get_interface_type() local to ui/gtk/main.c, as it's not called from outside ui/gtk/main.c. Don't declare fill_in_local_interfaces() or hide_interface() unless we have pcap - we don't define them unless we have pcap. svn path=/trunk/; revision=43518
Diffstat (limited to 'ui/gtk/main.h')
-rw-r--r--ui/gtk/main.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/ui/gtk/main.h b/ui/gtk/main.h
index cf45bb73c6..2952d7b5ca 100644
--- a/ui/gtk/main.h
+++ b/ui/gtk/main.h
@@ -386,17 +386,6 @@ extern void refresh_local_interface_lists(void);
* includes non-local interfaces.
*/
extern void refresh_non_local_interface_lists(void);
-#endif
-
-void hide_interface(gchar* new_hide);
-
-/*
- * Fetch the list of local interfaces with capture_interface_list()
- * and set the list of "all interfaces" in *capture_opts to include
- * those interfaces. On failure, we just set the list to an empty
- * list.
- */
-extern void scan_local_interfaces(capture_options* capture_opts);
/*
* Get the global interface list. Generate it if we haven't
@@ -404,4 +393,7 @@ extern void scan_local_interfaces(capture_options* capture_opts);
*/
extern void fill_in_local_interfaces(capture_options* capture_opts);
+void hide_interface(gchar* new_hide);
+#endif
+
#endif /* __MAIN_H__ */