Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations | Functions
register.h File Reference
#include "ws_symbol_export.h"

Go to the source code of this file.

Macros

#define RA_BASE_COUNT   (RA_INTERFACES - 3)
 

Typedefs

typedef void(* register_cb) (register_action_e action, const char *message, void *client_data)
 
typedef void(* register_entity_func) (register_cb cb, void *client_data)
 

Enumerations

enum  register_action_e {
  RA_NONE , RA_DISSECTORS , RA_LISTENERS , RA_EXTCAP ,
  RA_REGISTER , RA_PLUGIN_REGISTER , RA_HANDOFF , RA_PLUGIN_HANDOFF ,
  RA_LUA_PLUGINS , RA_LUA_DEREGISTER , RA_PREFERENCES , RA_INTERFACES ,
  RA_PREFERENCES_APPLY
}
 Identifies the current registration or initialization phase during Wireshark startup. More...
 

Functions

WS_DLL_PUBLIC void register_all_protocols (register_cb cb, void *client_data)
 
WS_DLL_PUBLIC void register_all_protocol_handoffs (register_cb cb, void *client_data)
 
WS_DLL_PUBLIC void register_all_event_dissectors (register_cb cb, void *client_data)
 
WS_DLL_PUBLIC void register_all_event_dissectors_handoffs (register_cb cb, void *client_data)
 

Detailed Description

Definitions for protocol registration

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Enumeration Type Documentation

◆ register_action_e

Identifies the current registration or initialization phase during Wireshark startup.

Enumerator
RA_NONE 

No action in progress; used for initialization

RA_DISSECTORS 

Initializing the dissector framework

RA_LISTENERS 

Registering tap listeners

RA_EXTCAP 

Registering extcap plugin preferences

RA_REGISTER 

Running built-in dissector registration routines

RA_PLUGIN_REGISTER 

Running plugin dissector registration routines

RA_HANDOFF 

Running built-in dissector handoff routines

RA_PLUGIN_HANDOFF 

Running plugin dissector handoff routines

RA_LUA_PLUGINS 

Registering Lua plugins

RA_LUA_DEREGISTER 

Deregistering Lua plugins

RA_PREFERENCES 

Loading and registering module preferences

RA_INTERFACES 

Enumerating local capture interfaces

RA_PREFERENCES_APPLY 

Applying preferences that have been changed

Function Documentation

◆ register_all_event_dissectors()

WS_DLL_PUBLIC void register_all_event_dissectors ( register_cb  cb,
void *  client_data 
)

Call each event dissector's 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.

Parameters
cbCallback routine which is called for each protocol. Messages have the format "event_register_XXX".
client_dataData pointer for the callback.

◆ register_all_event_dissectors_handoffs()

WS_DLL_PUBLIC void register_all_event_dissectors_handoffs ( register_cb  cb,
void *  client_data 
)

Call each event dissector's 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.

Parameters
cbCallback routine which is called for each protocol. Messages have the format "event_reg_handoff_XXX".
client_dataData pointer for the callback.

◆ register_all_protocol_handoffs()

WS_DLL_PUBLIC void register_all_protocol_handoffs ( register_cb  cb,
void *  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.

Parameters
cbCallback routine which is called for each protocol. Messages have the format "proto_reg_handoff_XXX".
client_dataData pointer for the callback.

◆ register_all_protocols()

WS_DLL_PUBLIC void register_all_protocols ( register_cb  cb,
void *  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.

Parameters
cbCallback routine which is called for each protocol. Messages have the format "proto_register_XXX".
client_dataData pointer for the callback.