aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-24 19:14:38 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-24 19:14:38 +0000
commit51811c01d63da8ada95891a67c93bc6750f778d9 (patch)
treef225bf224552af610f8975e32666d9e2a976e7cb /capture_ui_utils.c
parent3cfc9696afcf6c295f2b170a1fb8e6d9a4436779 (diff)
Add a comment explaining why get_interface_descriptive_name() shouldn't
be, for example, called once a second while a capture is in progress. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22643 f5534014-38df-0310-8fa8-9805f1628bb7
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)