replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.
[metze/wireshark/wip.git] / ui / 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 #ifndef __IFACE_LISTS_H__
12 #define __IFACE_LISTS_H__
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17
18 #ifdef HAVE_LIBPCAP
19 /*
20  * Used when sorting an interface list into alphabetical order by
21  * their descriptions.
22  */
23 extern gint if_list_comparator_alph(const void *first_arg, const void *second_arg);
24
25 /*
26  * Get the global interface list.  Generate it if we haven't
27  * done so already.
28  */
29 extern void fill_in_local_interfaces(void(*update_cb)(void));
30
31 /*
32  * Update the global interface list.
33  */
34 extern void scan_local_interfaces(void (*update_cb)(void));
35
36 /*
37  * Hide the interfaces
38  */
39 extern void hide_interface(gchar* new_hide);
40
41 /*
42  * Update the global interface list from preferences.
43  */
44 extern void update_local_interfaces(void);
45
46 #endif /* HAVE_LIBPCAP */
47
48 #ifdef __cplusplus
49 }
50 #endif /* __cplusplus */
51
52 #endif /* __IFACE_LISTS_H__ */
53
54 /*
55  * Editor modelines
56  *
57  * Local Variables:
58  * c-basic-offset: 4
59  * tab-width: 8
60  * indent-tabs-mode: nil
61  * End:
62  *
63  * ex: set shiftwidth=4 tabstop=8 expandtab:
64  * :indentSize=4:tabSize=8:noTabs=true:
65  */