2000-02-07 17:08:27 +00:00
|
|
|
/* plugin_api.h
|
2000-02-07 17:23:53 +00:00
|
|
|
* Routines for Ethereal plugins.
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
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
|
|
|
|
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>
|
2004-09-27 22:55:15 +00:00
|
|
|
#include <epan/prefs.h>
|
2005-02-09 23:38:00 +00:00
|
|
|
#include <epan/reassemble.h>
|
2004-07-18 18:06:47 +00:00
|
|
|
#include <epan/dissectors/packet-giop.h>
|
|
|
|
#include <epan/dissectors/packet-tpkt.h>
|
|
|
|
#include <epan/dissectors/packet-tcp.h>
|
|
|
|
#include <epan/dissectors/packet-rpc.h>
|
2004-09-29 00:06:36 +00:00
|
|
|
#include <epan/tap.h>
|
2005-02-09 23:38:00 +00:00
|
|
|
#include <epan/asn1.h>
|
2004-07-18 18:06:47 +00:00
|
|
|
#include <epan/dissectors/packet-per.h>
|
|
|
|
#include <epan/dissectors/packet-ber.h>
|
2004-09-23 07:32:16 +00:00
|
|
|
#include <epan/dissectors/packet-rtp.h>
|
|
|
|
#include <epan/dissectors/packet-rtcp.h>
|
2004-09-28 23:48:02 +00:00
|
|
|
#include <epan/xdlc.h>
|
2004-09-28 00:06:32 +00:00
|
|
|
#include <epan/crc16.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"
|
2005-01-12 21:44:53 +00:00
|
|
|
#include "epan/dissectors/packet-dcerpc.h"
|
2000-02-07 17:08:27 +00:00
|
|
|
|
2004-09-29 22:20:21 +00:00
|
|
|
#endif /* PLUGINS_NEED_ADDRESS_TABLE */
|
|
|
|
|
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 */
|