Wireshark  4.3.0
The Wireshark network protocol analyzer
dissectors.h
1 /* dissectors.h
2  * Definitions for protocol registration
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 __DISSECTOR_REGISTER_H__
12 #define __DISSECTOR_REGISTER_H__
13 
14 #include <glib.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
19 
20 typedef struct _dissector_reg {
21  const char *cb_name;
22  void (*cb_func)(void);
24 
25 extern dissector_reg_t const dissector_reg_proto[];
26 extern dissector_reg_t const dissector_reg_handoff[];
27 
28 extern const gulong dissector_reg_proto_count;
29 extern const gulong dissector_reg_handoff_count;
30 
31 #ifdef __cplusplus
32 }
33 #endif /* __cplusplus */
34 
35 #endif /* __DISSECTOR_REGISTER_H__ */
36 
37 /*
38  * Editor modelines - https://www.wireshark.org/tools/modelines.html
39  *
40  * Local Variables:
41  * c-basic-offset: 4
42  * tab-width: 8
43  * indent-tabs-mode: nil
44  * End:
45  *
46  * vi: set shiftwidth=4 tabstop=8 expandtab:
47  * :indentSize=4:tabSize=8:noTabs=true:
48  */
Definition: dissectors.h:20