2 * Table of exported addresses for Ethereal plugins.
4 * $Id: plugin_table.h,v 1.67 2003/07/18 03:01:35 guy Exp $
6 * Ethereal - Network traffic analyzer
7 * Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
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.
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.
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.
24 #ifndef PLUGIN_TABLE_H
25 #define PLUGIN_TABLE_H
27 #ifdef PLUGINS_NEED_ADDRESS_TABLE
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. */
33 /* Typedefs to make our plugin_address_table_t struct look prettier */
35 /* file generated by plugin_gen.py */
36 #include "Xplugin_table.h"
38 typedef guint8* (*addr_tvb_get_string)(tvbuff_t*, gint, gint);
39 typedef guint8* (*addr_tvb_get_stringz)(tvbuff_t*, gint, gint*);
43 #include "plugin_api_decls.h"
45 } plugin_address_table_t;
47 #else /* ! PLUGINS_NEED_ADDRESS_TABLE */
49 typedef void plugin_address_table_t;
51 #endif /* PLUGINS_NEED_ADDRESS_TABLE */
53 #endif /* PLUGIN_TABLE_H */