Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_ui_utils.h
Go to the documentation of this file.
1
12#ifndef __CAPTURE_UI_UTILS_H__
13#define __CAPTURE_UI_UTILS_H__
14
15#include "ui/capture_opts.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
34char *capture_dev_user_descr_find(const char *if_name);
35
44int capture_dev_user_linktype_find(const char *if_name);
45
54int capture_dev_user_buffersize_find(const char *if_name);
55
70bool capture_dev_user_snaplen_find(const char *if_name, bool *hassnap, int *snaplen);
71
82bool capture_dev_user_pmode_find(const char *if_name, bool *pmode);
83
94char* capture_dev_user_cfilter_find(const char *if_name);
95
108char *get_interface_descriptive_name(const capture_options *capture_opts, const char *if_name);
109
118GList *build_capture_combo_list(GList *if_list, bool do_hide);
119
125void free_capture_combo_list(GList *combo_list);
126
127
138const char *get_if_name(const char *if_text);
139
146extern void set_active_dlt(interface_t *device, int global_default_dlt);
147
161#define IFLIST_QUOTE_IF_DESCRIPTION 0x00000001
162#define IFLIST_SHOW_FILTER 0x00000002
163
171extern GString *get_iface_list_string(capture_options *capture_opts, uint32_t style);
172
173#ifdef __cplusplus
174}
175#endif /* __cplusplus */
176
177#endif /* __CAPTURE_UI_UTILS_H__ */
int capture_dev_user_linktype_find(const char *if_name)
Find user-specified link-layer header type that matches interface name, if any.
const char * get_if_name(const char *if_text)
Given text that contains an interface name possibly prefixed by an interface description,...
bool capture_dev_user_snaplen_find(const char *if_name, bool *hassnap, int *snaplen)
Find user-specified snap length that matches interface name, if any.
GList * build_capture_combo_list(GList *if_list, bool do_hide)
Build the GList of available capture interfaces.
char * capture_dev_user_descr_find(const char *if_name)
Find user-specified capture device description that matches interface name, if any.
void free_capture_combo_list(GList *combo_list)
Free the GList from build_capture_combo_list().
char * capture_dev_user_cfilter_find(const char *if_name)
Find user-specified capture filter that matches interface name, if any.
GString * get_iface_list_string(capture_options *capture_opts, uint32_t style)
Get a string containing a list of available capture interfaces.
void set_active_dlt(interface_t *device, int global_default_dlt)
Set the active DLT for a device appropriately.
int capture_dev_user_buffersize_find(const char *if_name)
Find user-specified buffer size that matches interface name, if any.
char * get_interface_descriptive_name(const capture_options *capture_opts, const char *if_name)
Return as descriptive a name for an interface as we can get.
bool capture_dev_user_pmode_find(const char *if_name, bool *pmode)
Find user-specified promiscuous mode that matches interface name, if any.
Definition capture_opts.h:236
Definition androiddump.c:219