Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

iface_lists.h
1 /* iface_lists.h
2 * Declarations of routines to manage the global list of interfaces and to
3 * update widgets/windows displaying items from those lists
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef __IFACE_LISTS_H__
13 #define __IFACE_LISTS_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
18
19 #ifdef HAVE_LIBPCAP
20 /*
21 * Used when sorting an interface list into alphabetical order by
22 * their descriptions.
23 */
24 extern gint if_list_comparator_alph(const void *first_arg, const void *second_arg);
25
26 /*
27 * Get the global interface list. Generate it if we haven't
28 * done so already.
29 */
30 extern void fill_in_local_interfaces(void(*update_cb)(void));
31
32 /*
33 * Update the global interface list.
34 */
35 extern void scan_local_interfaces(void (*update_cb)(void));
36
37 /*
38 * Hide the interfaces
39 */
40 extern void hide_interface(gchar* new_hide);
41
42 /*
43 * Update the global interface list from preferences.
44 */
45 extern void update_local_interfaces(void);
46
47 #endif /* HAVE_LIBPCAP */
48
49 #ifdef __cplusplus
50 }
51 #endif /* __cplusplus */
52
53 #endif /* __IFACE_LISTS_H__ */
54
55 /*
56 * Editor modelines
57 *
58 * Local Variables:
59 * c-basic-offset: 4
60 * tab-width: 8
61 * indent-tabs-mode: nil
62 * End:
63 *
64 * ex: set shiftwidth=4 tabstop=8 expandtab:
65 * :indentSize=4:tabSize=8:noTabs=true:
66 */