|
Wireshark
4.3.0
The Wireshark network protocol analyzer
|
#include "register.h"Go to the source code of this file.
Functions | |
| void | register_all_protocols (register_cb cb, gpointer client_data) |
| void | register_all_protocol_handoffs (register_cb cb, gpointer client_data) |
| gulong | register_count (void) |
Definitions for protocol registration
Wireshark - Network traffic analyzer By Gerald Combs gerald@wireshark.org Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
| void register_all_protocol_handoffs | ( | register_cb | cb, |
| gpointer | client_data | ||
| ) |
Call each dissector's protocol handoff routine.
Each routine is called from a worker thread. Registration routines might call any number of routines which are not thread safe, such as wmem_alloc. Callbacks should handle themselves accordingly.
| cb | Callback routine which is called for each protocol. Messages have the format "proto_reg_handoff_XXX". |
| client_data | Data pointer for the callback. |
| void register_all_protocols | ( | register_cb | cb, |
| gpointer | client_data | ||
| ) |
Call each dissector's protocol registration routine.
Each routine is called in alphabetical order from a worker thread. Registration routines might call any number of routines which are not thread safe, such as wmem_alloc. Callbacks should handle themselves accordingly.
| cb | Callback routine which is called for each protocol. Messages have the format "proto_register_XXX". |
| client_data | Data pointer for the callback. |