diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-02-02 03:42:18 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-02-02 03:42:18 +0000 |
commit | 5603cb2278506405c83294183b44060fecd235a5 (patch) | |
tree | dee4124c445edcac68a95fd668ecb79b2e296c31 /plugins/plugin_table.h | |
parent | 2b0601b26a1e7114de09ef14b67239e526680200 (diff) |
Routines added to the plugin table, and include-once #ifndef/#define
wrappers added to plugin header files, by Charlie Duke.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4676 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/plugin_table.h')
-rw-r--r-- | plugins/plugin_table.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/plugins/plugin_table.h b/plugins/plugin_table.h index c40fbd8644..3fcb6f1b05 100644 --- a/plugins/plugin_table.h +++ b/plugins/plugin_table.h @@ -1,7 +1,7 @@ /* plugin_table.h * Table of exported addresses for Ethereal plugins. * - * $Id: plugin_table.h,v 1.37 2002/01/29 08:44:51 guy Exp $ + * $Id: plugin_table.h,v 1.38 2002/02/02 03:42:18 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -21,6 +21,9 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef PLUGIN_TABLE_H +#define PLUGIN_TABLE_H + #ifdef PLUGINS_NEED_ADDRESS_TABLE /* Some OSes (Win32) have DLLs that cannot reference symbols in the parent @@ -126,6 +129,10 @@ typedef proto_item* (*addr_proto_tree_add_text)(proto_tree*, tvbuff_t*, gint, gi typedef tvbuff_t* (*addr_tvb_new_subset)(tvbuff_t*, gint, gint, gint); +typedef void (*addr_tvb_set_free_cb)(tvbuff_t*, tvbuff_free_cb_t); +typedef void (*addr_tvb_set_child_real_data_tvbuff)(tvbuff_t*, tvbuff_t*); +typedef tvbuff_t* (*addr_tvb_new_real_data)(const guint8*, guint, gint, const gchar*); + typedef guint (*addr_tvb_length)(tvbuff_t*); typedef gint (*addr_tvb_length_remaining)(tvbuff_t*, gint); typedef gboolean (*addr_tvb_bytes_exist)(tvbuff_t*, gint, gint); @@ -292,6 +299,10 @@ typedef struct { addr_tvb_new_subset p_tvb_new_subset; + addr_tvb_set_free_cb p_tvb_set_free_cb; + addr_tvb_set_child_real_data_tvbuff p_tvb_set_child_real_data_tvbuff; + addr_tvb_new_real_data p_tvb_new_real_data; + addr_tvb_length p_tvb_length; addr_tvb_length_remaining p_tvb_length_remaining; addr_tvb_bytes_exist p_tvb_bytes_exist; @@ -373,4 +384,6 @@ typedef struct { typedef void plugin_address_table_t; -#endif +#endif /* PLUGINS_NEED_ADDRESS_TABLE */ + +#endif /* PLUGIN_TABLE_H */ |