2 * Definitions for protocol registration
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __REGISTER_H__
24 #define __REGISTER_H__
26 #include "ws_symbol_export.h"
30 #endif /* __cplusplus */
35 RA_NONE, /* For initialization */
36 RA_DISSECTORS, /* Initializing dissectors */
37 RA_LISTENERS, /* Tap listeners */
38 RA_EXTCAP, /* extcap register preferences */
39 RA_REGISTER, /* Built-in register */
40 RA_PLUGIN_REGISTER, /* Plugin register */
41 RA_HANDOFF, /* Built-in handoff */
42 RA_PLUGIN_HANDOFF, /* Plugin handoff */
43 RA_LUA_PLUGINS, /* Lua plugin register */
44 RA_LUA_DEREGISTER, /* Lua plugin deregister */
45 RA_PREFERENCES, /* Module preferences */
46 RA_INTERFACES /* Local interfaces */
49 typedef void (*register_cb)(register_action_e action, const char *message, gpointer client_data);
51 WS_DLL_PUBLIC void register_all_protocols(register_cb cb, gpointer client_data);
52 WS_DLL_PUBLIC void register_all_protocol_handoffs(register_cb cb, gpointer client_data);
53 extern void register_all_tap_listeners(void);
54 WS_DLL_PUBLIC gulong register_count(void);
58 #endif /* __cplusplus */
60 #endif /* __REGISTER_H__ */
63 * Editor modelines - http://www.wireshark.org/tools/modelines.html
68 * indent-tabs-mode: nil
71 * vi: set shiftwidth=2 tabstop=8 expandtab:
72 * :indentSize=2:tabSize=8:noTabs=true: