From Jon Ringle:
[obnox/wireshark/wip.git] / plugins / plugin_api.h
1 /* plugin_api.h
2  * Routines for Ethereal plugins.
3  *
4  * $Id$
5  *
6  * Ethereal - Network traffic analyzer
7  * Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #ifndef PLUGIN_API_H
25 #define PLUGIN_API_H
26
27 #ifdef PLUGINS_NEED_ADDRESS_TABLE
28
29 /* Some OSes (Win32) have DLLs that cannot reference symbols in the parent
30    executable, so the executable needs to provide a collection of pointers
31    to global variables and functions for the DLL plugin to use. */
32
33 /* #defines for those functions that are called through pointers,
34    and global variables that are referred to through pointers.
35
36    #defined in this fashion so that the declaration of the functions
37    and variables, from the system header files, turn into declarations
38    of pointers to functions and variables, and the references to them in
39    plugins, in the plugins, turn into references through the pointers. */
40
41 /* file generted by plugin_gen.py */
42 #include "Xplugin_api.h"
43
44 #include <epan/packet.h>
45 #include <epan/conversation.h>
46 #include <epan/report_err.h>
47 #include <epan/prefs.h>
48 #include "reassemble.h"
49 #include <epan/dissectors/packet-giop.h>
50 #include <epan/dissectors/packet-tpkt.h>
51 #include <epan/dissectors/packet-tcp.h>
52 #include <epan/dissectors/packet-rpc.h>
53 #include <epan/tap.h>
54 #include "asn1.h"
55 #include <epan/dissectors/packet-per.h>
56 #include <epan/dissectors/packet-ber.h>
57 #include <epan/dissectors/packet-rtp.h>
58 #include <epan/dissectors/packet-rtcp.h>
59 #include <epan/xdlc.h>
60 #include <epan/crc16.h>
61 #include "epan/except.h"
62 #include "epan/filesystem.h"
63 #include "epan/dissectors/packet-dcerpc.h"
64
65 #endif /* PLUGINS_NEED_ADDRESS_TABLE */
66
67 #include "plugin_table.h"
68
69 #ifdef PLUGINS_NEED_ADDRESS_TABLE
70 /* The parent executable will send us the pointer to a filled in
71    plugin_address_table_t struct, and we copy the pointers from
72    that table so that we can use functions from the parent executable. */
73 void plugin_address_table_init(plugin_address_table_t*);
74 #else
75 #define plugin_address_table_init(x)    ;
76 #endif
77
78 #endif /* PLUGIN_API_H */