2004-12-11 01:00:17 +00:00
|
|
|
/* mate_plugin.c
|
|
|
|
* MATE -- Meta Analysis Tracing Engine
|
|
|
|
*
|
|
|
|
* Copyright 2004, Luis E. Garcia Ontanon <luis.ontanon@gmail.com>
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-12-11 01:00:17 +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.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2005-05-16 13:28:35 +00:00
|
|
|
/* this file is used temporarily to buid MATE as a plugin */
|
2004-12-11 01:00:17 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2005-03-07 21:40:29 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#ifndef ENABLE_STATIC
|
2004-12-11 01:00:17 +00:00
|
|
|
#include "moduleinfo.h"
|
|
|
|
#include <gmodule.h>
|
2005-03-07 21:40:29 +00:00
|
|
|
#endif
|
2004-12-11 01:00:17 +00:00
|
|
|
|
|
|
|
/* these two are in packet-mate.c */
|
|
|
|
void proto_register_mate(void);
|
|
|
|
void proto_reg_handoff_mate(void);
|
2005-05-16 13:28:35 +00:00
|
|
|
|
|
|
|
|
2004-12-11 01:00:17 +00:00
|
|
|
static gboolean initialized = FALSE;
|
|
|
|
|
|
|
|
#ifndef ENABLE_STATIC
|
|
|
|
G_MODULE_EXPORT const gchar version[] = VERSION;
|
|
|
|
|
2005-03-07 02:44:41 +00:00
|
|
|
G_MODULE_EXPORT void plugin_register(void) {
|
2004-12-11 01:00:17 +00:00
|
|
|
|
2005-05-16 13:28:35 +00:00
|
|
|
if (! initialized ) {
|
2004-12-11 01:00:17 +00:00
|
|
|
proto_register_mate();
|
|
|
|
initialized = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
G_MODULE_EXPORT void plugin_reg_handoff(void)
|
|
|
|
{
|
|
|
|
proto_reg_handoff_mate();
|
|
|
|
}
|
|
|
|
#endif
|