Skip to content

Commit

Permalink
Add a comment explaining why get_interface_descriptive_name() shouldn't
Browse files Browse the repository at this point in the history
be, for example, called once a second while a capture is in progress.

svn path=/trunk/; revision=22643
  • Loading branch information
guyharris committed Aug 24, 2007
1 parent 289cce1 commit b1c3877
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions capture_ui_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b1c3877

Please sign in to comment.