1999-10-20 06:28:29 +00:00
|
|
|
/* register.h
|
|
|
|
* Definitions for protocol registration
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1999-10-20 06:28:29 +00:00
|
|
|
*
|
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 {
|
|
|
|
RA_NONE, /* for initialization */
|
|
|
|
RA_DISSECTORS, /* Initializing dissectors */
|
|
|
|
RA_LISTENERS, /* Tap listeners */
|
|
|
|
RA_REGISTER, /* register */
|
|
|
|
RA_PLUGIN_REGISTER, /* plugin register */
|
2011-10-02 16:19:55 +00:00
|
|
|
RA_PYTHON_REGISTER, /* python register */
|
2007-05-07 17:55:42 +00:00
|
|
|
RA_HANDOFF, /* handoff */
|
|
|
|
RA_PLUGIN_HANDOFF, /* plugin handoff */
|
2011-10-02 16:19:55 +00:00
|
|
|
RA_PYTHON_HANDOFF, /* python handoff */
|
2011-10-02 13:39:35 +00:00
|
|
|
RA_LUA_PLUGINS, /* lua plugin register */
|
2007-05-07 17:55:42 +00:00
|
|
|
RA_PREFERENCES, /* module preferences */
|
|
|
|
RA_CONFIGURATION /* configuration files */
|
|
|
|
} 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 */
|
|
|
|
|
1999-10-20 06:28:29 +00:00
|
|
|
#endif /* __REGISTER_H__ */
|