diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-08-24 19:14:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-08-24 19:14:38 +0000 |
commit | b1c3877e228d23a3f77ea9c72787957ea18ab131 (patch) | |
tree | f225bf224552af610f8975e32666d9e2a976e7cb /capture_ui_utils.c | |
parent | 289cce111924c365cbbc46cf5409bdca876850f5 (diff) | |
download | wireshark-b1c3877e228d23a3f77ea9c72787957ea18ab131.tar.gz wireshark-b1c3877e228d23a3f77ea9c72787957ea18ab131.tar.bz2 wireshark-b1c3877e228d23a3f77ea9c72787957ea18ab131.zip |
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.c | 5 |
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) |