From d939032a249c1e2d21155fd7fdb9aeace6bba6f4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 14 Aug 2002 19:18:20 +0000 Subject: From Tomas Kukosa: add some more routines to the plugin API. While we're at it, add "extern" to a bunch of function declaration the preceding change *didn't* require to have the "extern" added. svn path=/trunk/; revision=5995 --- plugins/plugin_api.c | 8 +++++++- plugins/plugin_api.h | 8 +++++++- plugins/plugin_api_decls.h | 9 ++++++++- plugins/plugin_table.h | 8 +++++++- 4 files changed, 29 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/plugin_api.c b/plugins/plugin_api.c index 25aaf8c368..13f3beab72 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.40 2002/07/12 22:52:39 guy Exp $ + * $Id: plugin_api.c,v 1.41 2002/08/14 19:18:20 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez @@ -175,4 +175,10 @@ plugin_address_table_init(plugin_address_table_t *pat) p_register_dissector_table = pat->p_register_dissector_table; p_except_throw = pat->p_except_throw; p_dissector_try_port = pat->p_dissector_try_port; + + p_conversation_add_proto_data = pat->p_conversation_add_proto_data; + p_conversation_get_proto_data = pat->p_conversation_get_proto_data; + p_conversation_delete_proto_data = pat->p_conversation_delete_proto_data; + p_p_add_proto_data = pat->p_p_add_proto_data; + p_p_get_proto_data = pat->p_p_get_proto_data; } diff --git a/plugins/plugin_api.h b/plugins/plugin_api.h index 531dfae1b0..01ca5d83e5 100644 --- a/plugins/plugin_api.h +++ b/plugins/plugin_api.h @@ -1,7 +1,7 @@ /* plugin_api.h * Routines for Ethereal plugins. * - * $Id: plugin_api.h,v 1.41 2002/07/12 22:52:39 guy Exp $ + * $Id: plugin_api.h,v 1.42 2002/08/14 19:18:20 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez @@ -206,6 +206,12 @@ #define except_throw (*p_except_throw) #define dissector_try_port (*p_dissector_try_port) +#define conversation_add_proto_data (*p_conversation_add_proto_data) +#define conversation_get_proto_data (*p_conversation_get_proto_data) +#define conversation_delete_proto_data (*p_conversation_delete_proto_data) +#define p_add_proto_data (*p_p_add_proto_data) +#define p_get_proto_data (*p_p_get_proto_data) + #endif #include diff --git a/plugins/plugin_api_decls.h b/plugins/plugin_api_decls.h index 1a79e2ada8..98b1091d8d 100644 --- a/plugins/plugin_api_decls.h +++ b/plugins/plugin_api_decls.h @@ -2,7 +2,7 @@ * Declarations of a list of "p_" names; included in various places * to declare them as variables or as function members. * - * $Id: plugin_api_decls.h,v 1.3 2002/07/12 22:52:39 guy Exp $ + * $Id: plugin_api_decls.h,v 1.4 2002/08/14 19:18:20 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez @@ -214,3 +214,10 @@ addr_decode_enumerated_bitfield p_decode_enumerated_bitfield; addr_register_dissector_table p_register_dissector_table; addr_except_throw p_except_throw; addr_dissector_try_port p_dissector_try_port; + +addr_conversation_add_proto_data p_conversation_add_proto_data; +addr_conversation_get_proto_data p_conversation_get_proto_data; +addr_conversation_delete_proto_data p_conversation_delete_proto_data; +addr_p_add_proto_data p_p_add_proto_data; +addr_p_get_proto_data p_p_get_proto_data; + diff --git a/plugins/plugin_table.h b/plugins/plugin_table.h index 76c8da448a..e3c067dde2 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.51 2002/07/17 06:55:26 guy Exp $ + * $Id: plugin_table.h,v 1.52 2002/08/14 19:18:20 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez @@ -240,6 +240,12 @@ typedef dissector_table_t (*addr_register_dissector_table)(const char *, char *, typedef void (*addr_except_throw)(long, long, const char *); typedef gboolean (*addr_dissector_try_port)(dissector_table_t, guint32, tvbuff_t *, packet_info *, proto_tree *); +typedef void (*addr_conversation_add_proto_data)(conversation_t *, int, void *); +typedef void *(*addr_conversation_get_proto_data)(conversation_t *, int); +typedef void (*addr_conversation_delete_proto_data)(conversation_t *, int); +typedef void (*addr_p_add_proto_data)(frame_data *, int, void *); +typedef void *(*addr_p_get_proto_data)(frame_data *, int); + typedef struct { #include "plugin_api_decls.h" -- cgit v1.2.3