2000-02-07 17:08:27 +00:00
|
|
|
/* plugin_api.h
|
2000-02-07 17:23:53 +00:00
|
|
|
* Routines for Ethereal plugins.
|
|
|
|
*
|
2004-03-23 21:19:58 +00:00
|
|
|
* $Id: plugin_api.h,v 1.61 2004/03/23 21:19:57 guy Exp $
|
2000-02-07 17:23:53 +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-02-07 17:23:53 +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-02-07 17:23:53 +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-02-07 17:23:53 +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.
|
2000-02-07 17:08:27 +00:00
|
|
|
*/
|
|
|
|
|
2002-02-02 03:42:18 +00:00
|
|
|
#ifndef PLUGIN_API_H
|
|
|
|
#define PLUGIN_API_H
|
|
|
|
|
2000-02-07 17:08:27 +00:00
|
|
|
#ifdef PLUGINS_NEED_ADDRESS_TABLE
|
2000-05-31 18:32:15 +00:00
|
|
|
|
2000-03-15 19:09:52 +00:00
|
|
|
/* Some OSes (Win32) have DLLs that cannot reference symbols in the parent
|
|
|
|
executable, so the executable needs to provide a collection of pointers
|
2001-11-04 03:37:29 +00:00
|
|
|
to global variables and functions for the DLL plugin to use. */
|
|
|
|
|
|
|
|
/* #defines for those functions that are called through pointers,
|
|
|
|
and global variables that are referred to through pointers.
|
|
|
|
|
|
|
|
#defined in this fashion so that the declaration of the functions
|
|
|
|
and variables, from the system header files, turn into declarations
|
|
|
|
of pointers to functions and variables, and the references to them in
|
|
|
|
plugins, in the plugins, turn into references through the pointers. */
|
2000-03-15 19:09:52 +00:00
|
|
|
|
2003-07-18 03:02:12 +00:00
|
|
|
/* file generted by plugin_gen.py */
|
|
|
|
#include "Xplugin_api.h"
|
2003-06-03 02:32:56 +00:00
|
|
|
|
2000-03-15 19:09:52 +00:00
|
|
|
#endif
|
2000-02-07 17:08:27 +00:00
|
|
|
|
2002-01-21 07:37:49 +00:00
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <epan/conversation.h>
|
2004-03-23 21:19:58 +00:00
|
|
|
#include <epan/report_err.h>
|
2000-11-13 10:13:26 +00:00
|
|
|
#include "prefs.h"
|
2002-11-14 18:54:53 +00:00
|
|
|
#include "reassemble.h"
|
2001-07-22 10:12:11 +00:00
|
|
|
#include "packet-giop.h"
|
2002-02-22 08:56:48 +00:00
|
|
|
#include "packet-tpkt.h"
|
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 "packet-tcp.h"
|
2003-03-06 09:01:47 +00:00
|
|
|
#include "tap.h"
|
2003-04-24 21:15:13 +00:00
|
|
|
#include "asn1.h"
|
2003-08-25 21:35:36 +00:00
|
|
|
#include "packet-per.h"
|
2004-03-04 07:07:57 +00:00
|
|
|
#include "packet-ber.h"
|
2004-01-05 15:03:38 +00:00
|
|
|
#include "xdlc.h"
|
2003-04-30 19:19:15 +00:00
|
|
|
#include "epan/except.h"
|
2003-10-29 10:37:28 +00:00
|
|
|
#include "epan/filesystem.h"
|
2000-02-07 17:08:27 +00:00
|
|
|
|
2000-03-15 19:09:52 +00:00
|
|
|
#include "plugin_table.h"
|
2000-02-07 17:08:27 +00:00
|
|
|
|
2000-03-15 19:09:52 +00:00
|
|
|
#ifdef PLUGINS_NEED_ADDRESS_TABLE
|
2000-02-07 17:08:27 +00:00
|
|
|
/* The parent executable will send us the pointer to a filled in
|
2000-03-15 19:09:52 +00:00
|
|
|
plugin_address_table_t struct, and we copy the pointers from
|
|
|
|
that table so that we can use functions from the parent executable. */
|
2000-02-07 17:08:27 +00:00
|
|
|
void plugin_address_table_init(plugin_address_table_t*);
|
|
|
|
#else
|
2000-03-15 19:09:52 +00:00
|
|
|
#define plugin_address_table_init(x) ;
|
2000-02-07 17:08:27 +00:00
|
|
|
#endif
|
2002-02-02 03:42:18 +00:00
|
|
|
|
|
|
|
#endif /* PLUGIN_API_H */
|