diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-13 10:13:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-13 10:13:26 +0000 |
commit | b830fb6a5f4de64a0a4f804a74256894e50ac21f (patch) | |
tree | fa8aa4df7c07ace9d432ad901317468116c3acb9 /plugins/plugin_api.c | |
parent | 3503bd353bc23aafa2adef7d2c2cd0894e397c9f (diff) |
Add "dissector_delete()", "proto_item_get_len()",
"proto_item_set_len()", "proto_item_set_text()", and the preference
routines expected to be used by dissectors to the table of function
pointers handed to dissectors on platforms where dynamically-loaded
modules can't access symbols from the main program.
svn path=/trunk/; revision=2638
Diffstat (limited to 'plugins/plugin_api.c')
-rw-r--r-- | plugins/plugin_api.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/plugin_api.c b/plugins/plugin_api.c index cfed71362f..71f5216dab 100644 --- a/plugins/plugin_api.c +++ b/plugins/plugin_api.c @@ -1,7 +1,7 @@ /* plugin_api.c * Routines for Ethereal plugins. * - * $Id: plugin_api.c,v 1.10 2000/11/13 08:00:09 guy Exp $ + * $Id: plugin_api.c,v 1.11 2000/11/13 10:13:21 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez <gram@xiexie.org> @@ -49,9 +49,14 @@ plugin_address_table_init(plugin_address_table_t *pat) p_proto_register_subtree_array = pat->p_proto_register_subtree_array; p_dissector_add = pat->p_dissector_add; p_old_dissector_add = pat->p_old_dissector_add; + p_dissector_delete = pat->p_old_dissector_delete; p_heur_dissector_add = pat->p_heur_dissector_add; + p_dissect_data = pat->p_dissect_data; p_old_dissect_data = pat->p_old_dissect_data; p_proto_is_protocol_enabled = pat->p_proto_is_protocol_enabled; + p_proto_item_get_len = pat->p_proto_item_get_len; + p_proto_item_set_len = pat->p_proto_item_set_len; + p_proto_item_set_text = pat->p_proto_item_set_text; p_proto_item_add_subtree = pat->p_proto_item_add_subtree; p_proto_tree_add_item = pat->p_proto_tree_add_item; p_proto_tree_add_item_hidden = pat->p_proto_tree_add_item_hidden; @@ -124,4 +129,8 @@ plugin_address_table_init(plugin_address_table_t *pat) p_tvb_strneql = pat->p_tvb_strneql; p_tvb_strncaseeql = pat->p_tvb_strncaseeql; p_tvb_bytes_to_str = pat->p_tvb_bytes_to_str; + p_prefs_register_module = pat->p_prefs_register_module; + p_prefs_register_uint_preference = pat->p_prefs_register_uint_preference; + p_prefs_register_bool_preference = pat->p_prefs_register_bool_preference; + p_prefs_register_enum_preference = pat->p_prefs_register_enum_preference; } |