1 /* register.h 2 * Definitions for protocol registration 3 * 4 * Wireshark - Network traffic analyzer 5 * By Gerald Combs <gerald@wireshark.org> 6 * Copyright 1998 Gerald Combs 7 * 8 * SPDX-License-Identifier: GPL-2.0-or-later 9 */ 10 11 #ifndef __REGISTER_H__ 12 #define __REGISTER_H__ 13 14 #include <glib.h> 15 16 typedef enum { 17 RA_NONE, /* For initialization */ 18 RA_DISSECTORS, /* Initializing dissectors */ 19 RA_LISTENERS, /* Tap listeners */ 20 RA_EXTCAP, /* extcap register preferences */ 21 RA_REGISTER, /* Built-in dissector registration */ 22 RA_PLUGIN_REGISTER, /* Plugin dissector registration */ 23 RA_HANDOFF, /* Built-in dissector handoff */ 24 RA_PLUGIN_HANDOFF, /* Plugin dissector handoff */ 25 RA_LUA_PLUGINS, /* Lua plugin register */ 26 RA_LUA_DEREGISTER, /* Lua plugin deregister */ 27 RA_PREFERENCES, /* Module preferences */ 28 RA_INTERFACES /* Local interfaces */ 29 } register_action_e; 30 31 #define RA_BASE_COUNT (RA_INTERFACES - 3) // RA_EXTCAP, RA_LUA_PLUGINS, RA_LUA_DEREGISTER 32 33 typedef void (*register_cb)(register_action_e action, const char *message, gpointer client_data); 34 35 #endif /* __REGISTER_H__ */ 36 37 /* 38 * Editor modelines - https://www.wireshark.org/tools/modelines.html 39 * 40 * Local Variables: 41 * c-basic-offset: 4 42 * tab-width: 8 43 * indent-tabs-mode: nil 44 * End: 45 * 46 * vi: set shiftwidth=4 tabstop=8 expandtab: 47 * :indentSize=4:tabSize=8:noTabs=true: 48 */ 49