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