diff options
author | Gerald Combs <gerald@wireshark.org> | 2004-09-02 21:49:36 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2004-09-02 21:49:36 +0000 |
commit | 4e3b6fb31568d2a767c4f977b8954e124caec30c (patch) | |
tree | 911907813e6c7bf6194d9fb8fda31ecb4fdc3791 /capture_combo_utils.h | |
parent | 16c708571ae1ce3c3ece8558039b715e37d8f8b7 (diff) |
Move get_if_name() from gtk/capture_dlg.c to capture_combo_utils.c.
svn path=/trunk/; revision=11888
Diffstat (limited to 'capture_combo_utils.h')
-rw-r--r-- | capture_combo_utils.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/capture_combo_utils.h b/capture_combo_utils.h index d87ceead1f..a8ac648cec 100644 --- a/capture_combo_utils.h +++ b/capture_combo_utils.h @@ -31,8 +31,10 @@ /** Build the GList of available capture interfaces. * - * @param if_list the interface list from get_interface_list() - * @param do_hide hide the "hidden" interfaces + * @param if_list An interface list from get_interface_list(). + * @param do_hide Hide the "hidden" interfaces. + * + * @return A list of if_info_t structs. */ GList *build_capture_combo_list(GList *if_list, gboolean do_hide); @@ -42,4 +44,16 @@ GList *build_capture_combo_list(GList *if_list, gboolean do_hide); */ void free_capture_combo_list(GList *combo_list); + +/** Given text that contains an interface name possibly prefixed by an + * interface description, extract the interface name. + * + * @param if_text A string containing the interface description + name. + * This is usually the data from one of the list elements returned by + * build_capture_combo_list(). + * + * @return The raw interface name, sans description. + */ +char *get_if_name(char *if_text); + #endif |