2001-10-31 10:40:58 +00:00
|
|
|
/* plugin_api_defs.h
|
|
|
|
* Define the variables that hold pointers to plugin API functions
|
|
|
|
*
|
2002-08-28 20:41:00 +00:00
|
|
|
* $Id: plugin_api_defs.h,v 1.15 2002/08/28 20:38:58 jmayer Exp $
|
2001-10-31 10:40:58 +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
|
|
|
*
|
2001-10-31 10:40:58 +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
|
|
|
*
|
2001-10-31 10:40:58 +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
|
|
|
*
|
2001-10-31 10:40:58 +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_API_DEFS_H
|
|
|
|
#define PLUGIN_API_DEFS_H
|
|
|
|
|
2001-10-31 10:40:58 +00:00
|
|
|
#ifdef PLUGINS_NEED_ADDRESS_TABLE
|
|
|
|
|
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"
|
2002-02-22 08:56:48 +00:00
|
|
|
|
2001-11-04 03:16:47 +00:00
|
|
|
#endif /* PLUGINS_NEED_ADDRESS_TABLE */
|
2002-02-02 03:42:18 +00:00
|
|
|
|
|
|
|
#endif /* PLUGIN_API_DEFS_H */
|