Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
register.h
Go to the documentation of this file.
1
12#ifndef __REGISTER_H__
13#define __REGISTER_H__
14
15#include "ws_symbol_export.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21typedef enum {
22 RA_NONE, /* For initialization */
23 RA_DISSECTORS, /* Initializing dissectors */
24 RA_LISTENERS, /* Tap listeners */
25 RA_EXTCAP, /* extcap register preferences */
26 RA_REGISTER, /* Built-in dissector registration */
27 RA_PLUGIN_REGISTER, /* Plugin dissector registration */
28 RA_HANDOFF, /* Built-in dissector handoff */
29 RA_PLUGIN_HANDOFF, /* Plugin dissector handoff */
30 RA_LUA_PLUGINS, /* Lua plugin register */
31 RA_LUA_DEREGISTER, /* Lua plugin deregister */
32 RA_PREFERENCES, /* Module preferences */
33 RA_INTERFACES, /* Local interfaces */
34 RA_PREFERENCES_APPLY /* Apply changed preferences */
35} register_action_e;
36
37#define RA_BASE_COUNT (RA_INTERFACES - 3) // RA_EXTCAP, RA_LUA_PLUGINS, RA_LUA_DEREGISTER
38
39typedef void (*register_cb)(register_action_e action, const char *message, void *client_data);
40typedef void (*register_entity_func)(register_cb cb, void* client_data);
41
42
54WS_DLL_PUBLIC
55void register_all_protocols(register_cb cb, void* client_data);
56
67WS_DLL_PUBLIC
68void register_all_protocol_handoffs(register_cb cb, void* client_data);
69
70#ifdef __cplusplus
71}
72#endif /* __cplusplus */
73
74#endif /* __REGISTER_H__ */
75
76/*
77 * Editor modelines - https://www.wireshark.org/tools/modelines.html
78 *
79 * Local Variables:
80 * c-basic-offset: 4
81 * tab-width: 8
82 * indent-tabs-mode: nil
83 * End:
84 *
85 * vi: set shiftwidth=4 tabstop=8 expandtab:
86 * :indentSize=4:tabSize=8:noTabs=true:
87 */
WS_DLL_PUBLIC void register_all_protocol_handoffs(register_cb cb, void *client_data)
Definition register.c:127
WS_DLL_PUBLIC void register_all_protocols(register_cb cb, void *client_data)
Definition register.c:65