2000-03-15 19:09:52 +00:00
|
|
|
/* plugin_table.h
|
|
|
|
* Table of exported addresses for Ethereal plugins.
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-03-15 19:09:52 +00:00
|
|
|
*
|
|
|
|
* Ethereal - Network traffic analyzer
|
2001-11-13 23:55:44 +00:00
|
|
|
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2000-03-15 19:09:52 +00:00
|
|
|
* 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 20:41:00 +00:00
|
|
|
*
|
2000-03-15 19:09:52 +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 20:41:00 +00:00
|
|
|
*
|
2000-03-15 19:09:52 +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
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2002-02-02 03:42:18 +00:00
|
|
|
#ifndef PLUGIN_TABLE_H
|
|
|
|
#define PLUGIN_TABLE_H
|
|
|
|
|
2000-03-15 19:09:52 +00:00
|
|
|
#ifdef PLUGINS_NEED_ADDRESS_TABLE
|
|
|
|
|
|
|
|
/* Some OSes (Win32) have DLLs that cannot reference symbols in the parent
|
|
|
|
executable, so the executable needs to provide a collection of pointers
|
|
|
|
to those functions for the DLL plugin to use. */
|
|
|
|
|
|
|
|
/* Typedefs to make our plugin_address_table_t struct look prettier */
|
|
|
|
|
2003-07-18 03:02:12 +00:00
|
|
|
/* file generated by plugin_gen.py */
|
|
|
|
#include "Xplugin_table.h"
|
2003-06-03 02:32:56 +00:00
|
|
|
|
2003-06-13 02:35:15 +00:00
|
|
|
typedef guint8* (*addr_tvb_get_string)(tvbuff_t*, gint, gint);
|
|
|
|
typedef guint8* (*addr_tvb_get_stringz)(tvbuff_t*, gint, gint*);
|
2003-06-12 10:10:39 +00:00
|
|
|
|
2000-03-15 19:09:52 +00:00
|
|
|
typedef struct {
|
2001-11-04 03:37:29 +00:00
|
|
|
|
Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,
extracting PDUs from it and possibly doing reassembly. Make the COPS,
DNS, DSI, Gryphon, and SCCP dissectors use it.
Add "set_actual_length()", "tcp_dissect_pdus()",
"decode_boolean_bitfield()", "decode_numeric_bitfield()", and
"decode_enumerated_bitfield()" to the list of routines available to
dissectors on platforms where routines in the main program aren't
available to dynamically-loaded code.
Declare routines in "to_str.h" as "extern"; as I remember, that's
necessary to allow the "decode_XXX_bitfield()" routines declared therein
to be made available to plugins as per the above.
Note that new exported routines should be added to the end of the table
if that's the only change being made to the table.
Create a new "plugin_api_decls.h" header file, used to declare both the
"p_" variables and the "p_" structure members in the routine-exporting
mechanism; this reduces the number of places you have to change to
change the list of exported routines.
svn path=/trunk/; revision=5394
2002-05-05 00:16:38 +00:00
|
|
|
#include "plugin_api_decls.h"
|
|
|
|
|
2000-03-15 19:09:52 +00:00
|
|
|
} plugin_address_table_t;
|
|
|
|
|
2001-11-04 03:16:47 +00:00
|
|
|
#else /* ! PLUGINS_NEED_ADDRESS_TABLE */
|
2000-03-15 19:09:52 +00:00
|
|
|
|
|
|
|
typedef void plugin_address_table_t;
|
|
|
|
|
2002-02-02 03:42:18 +00:00
|
|
|
#endif /* PLUGINS_NEED_ADDRESS_TABLE */
|
|
|
|
|
|
|
|
#endif /* PLUGIN_TABLE_H */
|