Squelch compiler warnings, and remove some trailing blanks from lines.
[obnox/wireshark/wip.git] / plugins / plugin_table.h
1 /* plugin_table.h
2  * Table of exported addresses for Ethereal plugins.
3  *
4  * $Id: plugin_table.h,v 1.67 2003/07/18 03:01:35 guy Exp $
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_TABLE_H
25 #define PLUGIN_TABLE_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 those functions for the DLL plugin to use. */
32
33 /* Typedefs to make our plugin_address_table_t struct look prettier */
34
35 /* file generated by plugin_gen.py */
36 #include "Xplugin_table.h"
37
38 typedef guint8* (*addr_tvb_get_string)(tvbuff_t*, gint, gint);
39 typedef guint8* (*addr_tvb_get_stringz)(tvbuff_t*, gint, gint*);
40
41 typedef struct  {
42
43 #include "plugin_api_decls.h"
44
45 } plugin_address_table_t;
46
47 #else /* ! PLUGINS_NEED_ADDRESS_TABLE */
48
49 typedef void    plugin_address_table_t;
50
51 #endif /* PLUGINS_NEED_ADDRESS_TABLE */
52
53 #endif /* PLUGIN_TABLE_H */