summaryrefslogtreecommitdiff
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-08-24 19:14:38 +0000
committerGuy Harris <guy@alum.mit.edu>2007-08-24 19:14:38 +0000
commitb1c3877e228d23a3f77ea9c72787957ea18ab131 (patch)
treef225bf224552af610f8975e32666d9e2a976e7cb /capture_ui_utils.c
parent289cce111924c365cbbc46cf5409bdca876850f5 (diff)
downloadwireshark-b1c3877e228d23a3f77ea9c72787957ea18ab131.tar.gz
Add a comment explaining why get_interface_descriptive_name() shouldn't
be, for example, called once a second while a capture is in progress. svn path=/trunk/; revision=22643
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r--capture_ui_utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capture_ui_utils.c b/capture_ui_utils.c
index 04d806b0bd..cbf3b00891 100644
--- a/capture_ui_utils.c
+++ b/capture_ui_utils.c
@@ -102,6 +102,11 @@ capture_dev_user_descr_find(const gchar *if_name)
* otherwise use the interface name.
*
* The result must be g_free()'d when you're done with it.
+ *
+ * Note: given that this calls get_interface_list(), which attempts to
+ * open all adapters it finds in order to check whether they can be
+ * captured on, this is an expensive routine to call, so don't call it
+ * frequently.
*/
char *
get_interface_descriptive_name(const char *if_name)