Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
capture_ui_utils.h
Go to the documentation of this file.
1 /* capture_ui_utils.c
2  * Declarations of utilities for capture user interfaces
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef __CAPTURE_UI_UTILS_H__
12 #define __CAPTURE_UI_UTILS_H__
13 
14 #include "capture_opts.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
19 
33 char *capture_dev_user_descr_find(const gchar *if_name);
34 
43 gint capture_dev_user_linktype_find(const gchar *if_name);
44 
45 #ifdef CAN_SET_CAPTURE_BUFFER_SIZE
46 
54 gint capture_dev_user_buffersize_find(const gchar *if_name);
55 #endif
56 
71 gboolean capture_dev_user_snaplen_find(const gchar *if_name, gboolean *hassnap, int *snaplen);
72 
83 gboolean capture_dev_user_pmode_find(const gchar *if_name, gboolean *pmode);
84 
95 gchar* capture_dev_user_cfilter_find(const gchar *if_name);
96 
106 char *get_interface_descriptive_name(const char *if_name);
107 
115 GList *build_capture_combo_list(GList *if_list, gboolean do_hide);
116 
121 void free_capture_combo_list(GList *combo_list);
122 
123 
133 const char *get_if_name(const char *if_text);
134 
142 const char *get_iface_description_for_interface(capture_options *capture_opts, guint i);
143 
149 extern void set_active_dlt(interface_t *device, int global_default_dlt);
150 
163 #define IFLIST_QUOTE_IF_DESCRIPTION 0x00000001
164 #define IFLIST_SHOW_FILTER 0x00000002
165 
166 extern GString *get_iface_list_string(capture_options *capture_opts, guint32 style);
167 
175 extern gchar *get_iface_display_name(const gchar *description, const if_info_t *if_info);
176 
177 #ifdef __cplusplus
178 }
179 #endif /* __cplusplus */
180 
181 #endif /* __CAPTURE_UI_UTILS_H__ */
182 
183 /*
184  * Editor modelines - http://www.wireshark.org/tools/modelines.html
185  *
186  * Local Variables:
187  * c-basic-offset: 4
188  * tab-width: 8
189  * indent-tabs-mode: nil
190  * End:
191  *
192  * vi: set shiftwidth=4 tabstop=8 expandtab:
193  * :indentSize=4:tabSize=8:noTabs=true:
194  */
gboolean capture_dev_user_snaplen_find(const gchar *if_name, gboolean *hassnap, int *snaplen)
gchar * get_iface_display_name(const gchar *description, const if_info_t *if_info)
gchar * capture_dev_user_cfilter_find(const gchar *if_name)
GList * build_capture_combo_list(GList *if_list, gboolean do_hide)
const char * get_if_name(const char *if_text)
char * get_interface_descriptive_name(const char *if_name)
void free_capture_combo_list(GList *combo_list)
char * capture_dev_user_descr_find(const gchar *if_name)
void set_active_dlt(interface_t *device, int global_default_dlt)
gint capture_dev_user_linktype_find(const gchar *if_name)
Definition: androiddump.c:211
Definition: capture_ifinfo.h:37
Definition: capture_opts.h:249
gboolean capture_dev_user_pmode_find(const gchar *if_name, gboolean *pmode)
const char * get_iface_description_for_interface(capture_options *capture_opts, guint i)