67 lines
2.6 KiB
C
67 lines
2.6 KiB
C
/* plugin_api.c
|
|
* Routines for Ethereal plugins.
|
|
*
|
|
* $Id: plugin_api.c,v 1.6 2000/04/04 21:46:29 guy Exp $
|
|
*
|
|
* Ethereal - Network traffic analyzer
|
|
* Copyright 2000 by Gilbert Ramirez <gram@xiexie.org>
|
|
*
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "plugin_api.h"
|
|
|
|
packet_info *p_pi = NULL;
|
|
|
|
void
|
|
plugin_address_table_init(plugin_address_table_t *pat)
|
|
{
|
|
p_pi = pat->p_pi;
|
|
p_check_col = pat->p_check_col;
|
|
p_col_add_fstr = pat->p_col_add_fstr;
|
|
p_col_append_fstr = pat->p_col_append_fstr;
|
|
p_col_add_str = pat->p_col_add_str;
|
|
p_col_append_str = pat->p_col_append_str;
|
|
p_dfilter_init = pat->p_dfilter_init;
|
|
p_dfilter_cleanup = pat->p_dfilter_cleanup;
|
|
p_proto_register_protocol = pat->p_proto_register_protocol;
|
|
p_proto_register_field_array = pat->p_proto_register_field_array;
|
|
p_proto_register_subtree_array = pat->p_proto_register_subtree_array;
|
|
p_dissector_add = pat->p_dissector_add;
|
|
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;
|
|
p_proto_tree_add_protocol_format = pat->p_proto_tree_add_protocol_format;
|
|
p_proto_tree_add_bytes_format = pat->p_proto_tree_add_bytes_format;
|
|
p_proto_tree_add_time_format = pat->p_proto_tree_add_time_format;
|
|
p_proto_tree_add_ipxnet_format = pat->p_proto_tree_add_ipxnet_format;
|
|
p_proto_tree_add_ipv4_format = pat->p_proto_tree_add_ipv4_format;
|
|
p_proto_tree_add_ipv6_format = pat->p_proto_tree_add_ipv6_format;
|
|
p_proto_tree_add_ether_format = pat->p_proto_tree_add_ether_format;
|
|
p_proto_tree_add_string_format = pat->p_proto_tree_add_string_format;
|
|
p_proto_tree_add_boolean_format = pat->p_proto_tree_add_boolean_format;
|
|
p_proto_tree_add_uint_format = pat->p_proto_tree_add_uint_format;
|
|
p_proto_tree_add_text = pat->p_proto_tree_add_text;
|
|
p_proto_tree_add_notext = pat->p_proto_tree_add_notext;
|
|
}
|