diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-12-02 07:32:48 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-12-02 09:57:35 +0000 |
commit | 631172f2f4046255a78a5628b5499f38054039bb (patch) | |
tree | 640e725ead042cea2baee469451fe7eb5ce8dfa0 /ui/capture_ui_utils.h | |
parent | 3f3de12a881d2fba2d733fda0b3dad2f025cc0b9 (diff) |
Qt: Use uniform interface display name
Use common function to generate the interface display name, both
when scanning for interfaces (scan_local_interfaces()) and when
changing Comment in the Manage Interfaces dialog.
Change-Id: I3260208856563aaf387ce397d4ae61bddcc89b4f
Reviewed-on: https://code.wireshark.org/review/12362
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/capture_ui_utils.h')
-rw-r--r-- | ui/capture_ui_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/capture_ui_utils.h b/ui/capture_ui_utils.h index eb4cdf9db5..5f6cdcd284 100644 --- a/ui/capture_ui_utils.h +++ b/ui/capture_ui_utils.h @@ -175,6 +175,15 @@ extern void set_active_dlt(interface_t *device, int global_default_dlt); extern GString *get_iface_list_string(capture_options *capture_opts, guint32 style); +/** Get the interface display name to present in the interfaces list. + * + * @param description A user-specified capture device description + * @param if_info The if_info for the interface + * + * @return A interface display name (must be g_free'd later) + */ +extern gchar *get_iface_display_name(const gchar *description, const if_info_t *if_info); + #ifdef __cplusplus } #endif /* __cplusplus */ |