1999-10-20 06:28:29 +00:00
|
|
|
/* register.h
|
|
|
|
* Definitions for protocol registration
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-10-20 06:28:29 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-10-20 06:28:29 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-10-20 06:28:29 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
1999-10-20 06:28:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __REGISTER_H__
|
|
|
|
#define __REGISTER_H__
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2007-05-07 17:55:42 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
typedef enum {
|
2016-06-24 23:48:23 +00:00
|
|
|
RA_NONE, /* For initialization */
|
2007-05-07 17:55:42 +00:00
|
|
|
RA_DISSECTORS, /* Initializing dissectors */
|
|
|
|
RA_LISTENERS, /* Tap listeners */
|
2017-01-04 09:53:29 +00:00
|
|
|
RA_EXTCAP, /* extcap register preferences */
|
2016-06-24 23:48:23 +00:00
|
|
|
RA_REGISTER, /* Built-in register */
|
|
|
|
RA_PLUGIN_REGISTER, /* Plugin register */
|
|
|
|
RA_HANDOFF, /* Built-in handoff */
|
|
|
|
RA_PLUGIN_HANDOFF, /* Plugin handoff */
|
|
|
|
RA_LUA_PLUGINS, /* Lua plugin register */
|
|
|
|
RA_LUA_DEREGISTER, /* Lua plugin deregister */
|
|
|
|
RA_PREFERENCES, /* Module preferences */
|
2017-01-05 02:45:21 +00:00
|
|
|
RA_INTERFACES /* Local interfaces */
|
2007-05-07 17:55:42 +00:00
|
|
|
} register_action_e;
|
|
|
|
|
2007-05-25 19:13:49 +00:00
|
|
|
typedef void (*register_cb)(register_action_e action, const char *message, gpointer client_data);
|
2007-05-07 17:55:42 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC void register_all_protocols(register_cb cb, gpointer client_data);
|
|
|
|
WS_DLL_PUBLIC void register_all_protocol_handoffs(register_cb cb, gpointer client_data);
|
2002-10-31 22:16:01 +00:00
|
|
|
extern void register_all_tap_listeners(void);
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC gulong register_count(void);
|
2011-12-29 00:08:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2014-10-14 19:58:21 +00:00
|
|
|
#endif /* __REGISTER_H__ */
|
|
|
|
|
2014-10-12 18:56:12 +00:00
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 2
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
2014-10-14 19:58:21 +00:00
|
|
|
* vi: set shiftwidth=2 tabstop=8 expandtab:
|
2014-10-12 18:56:12 +00:00
|
|
|
* :indentSize=2:tabSize=8:noTabs=true:
|
|
|
|
*/
|