2 * Routines for the PROFINET plugin
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
8 * Copyright 1999 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 #include "moduleinfo.h"
36 /* Define version if we are not building ethereal statically */
39 G_MODULE_EXPORT const gchar version[] = VERSION;
42 gboolean plugin_registered = FALSE;
45 extern void proto_register_pn_io (void);
46 extern void proto_reg_handoff_pn_io (void);
47 extern void proto_register_pn_dcp (void);
48 extern void proto_reg_handoff_pn_dcp (void);
49 extern void proto_register_pn_ptcp (void);
50 extern void proto_reg_handoff_pn_ptcp (void);
52 /* Start the functions we need for the plugin stuff */
59 /* register the new protocol, protocol fields, and subtrees */
60 if (plugin_registered == FALSE) { /* execute protocol initialization only once */
61 proto_register_pn_io();
62 proto_register_pn_dcp();
63 proto_register_pn_ptcp();
65 plugin_registered = TRUE;
70 plugin_reg_handoff(void){
71 proto_reg_handoff_pn_io();
72 proto_reg_handoff_pn_dcp();
73 proto_reg_handoff_pn_ptcp();
78 /* End the functions we need for plugin stuff */