2 * Definitions for protocol registration
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef __REGISTER_INT_H__
12 #define __REGISTER_INT_H__
18 #endif /* __cplusplus */
20 /** Call each dissector's protocol registration routine.
22 * Each routine is called in alphabetical order from a worker thread.
23 * Registration routines might call any number of routines which are not
24 * thread safe, such as wmem_alloc. Callbacks should handle themselves
27 * @param cb Callback routine which is called for each protocol.
28 * Messages have the format "proto_register_XXX".
29 * @param client_data Data pointer for the callback.
31 void register_all_protocols(register_cb cb
, void *client_data
);
33 /** Call each dissector's protocol handoff routine.
35 * Each routine is called from a worker thread. Registration routines
36 * might call any number of routines which are not thread safe, such as
37 * wmem_alloc. Callbacks should handle themselves accordingly.
39 * @param cb Callback routine which is called for each protocol.
40 * Messages have the format "proto_reg_handoff_XXX".
41 * @param client_data Data pointer for the callback.
43 void register_all_protocol_handoffs(register_cb cb
, void *client_data
);
45 unsigned long register_count(void);
49 #endif /* __cplusplus */
51 #endif /* __REGISTER_INT_H__ */
54 * Editor modelines - https://www.wireshark.org/tools/modelines.html
59 * indent-tabs-mode: nil
62 * vi: set shiftwidth=4 tabstop=8 expandtab:
63 * :indentSize=4:tabSize=8:noTabs=true: