forked from osmocom/wireshark
Export "tvb_get_string()" and "tvb_get_stringz()" to plugins.
svn path=/trunk/; revision=7862
This commit is contained in:
parent
15d260c8ba
commit
feadec85eb
|
@ -1,7 +1,7 @@
|
||||||
/* plugins.c
|
/* plugins.c
|
||||||
* plugin routines
|
* plugin routines
|
||||||
*
|
*
|
||||||
* $Id: plugins.c,v 1.72 2003/06/04 00:11:02 guy Exp $
|
* $Id: plugins.c,v 1.73 2003/06/12 10:10:39 guy Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@ethereal.com>
|
* By Gerald Combs <gerald@ethereal.com>
|
||||||
|
@ -563,6 +563,9 @@ init_plugins(const char *plugin_dir)
|
||||||
patable.p_except_setup_try = except_setup_try;
|
patable.p_except_setup_try = except_setup_try;
|
||||||
|
|
||||||
patable.p_col_set_fence = col_set_fence;
|
patable.p_col_set_fence = col_set_fence;
|
||||||
|
|
||||||
|
patable.p_tvb_get_string = tvb_get_string;
|
||||||
|
patable.p_tvb_get_stringz = tvb_get_stringz;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* plugin_api.c
|
/* plugin_api.c
|
||||||
* Routines for Ethereal plugins.
|
* Routines for Ethereal plugins.
|
||||||
*
|
*
|
||||||
* $Id: plugin_api.c,v 1.51 2003/06/03 02:32:55 gerald Exp $
|
* $Id: plugin_api.c,v 1.52 2003/06/12 10:10:39 guy Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
||||||
|
@ -256,4 +256,7 @@ plugin_address_table_init(plugin_address_table_t *pat)
|
||||||
p_except_setup_try = pat->p_except_setup_try;
|
p_except_setup_try = pat->p_except_setup_try;
|
||||||
|
|
||||||
p_col_set_fence = pat->p_col_set_fence;
|
p_col_set_fence = pat->p_col_set_fence;
|
||||||
|
|
||||||
|
p_tvb_get_string = pat->p_tvb_get_string;
|
||||||
|
p_tvb_get_stringz = pat->p_tvb_get_stringz;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* plugin_api.h
|
/* plugin_api.h
|
||||||
* Routines for Ethereal plugins.
|
* Routines for Ethereal plugins.
|
||||||
*
|
*
|
||||||
* $Id: plugin_api.h,v 1.52 2003/06/03 02:32:55 gerald Exp $
|
* $Id: plugin_api.h,v 1.53 2003/06/12 10:10:39 guy Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
||||||
|
@ -287,6 +287,9 @@
|
||||||
|
|
||||||
#define col_set_fence (*p_col_set_fence)
|
#define col_set_fence (*p_col_set_fence)
|
||||||
|
|
||||||
|
#define tvb_get_string (*p_tvb_get_string)
|
||||||
|
#define tvb_get_stringz (*p_tvb_get_stringz)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <epan/packet.h>
|
#include <epan/packet.h>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Declarations of a list of "p_" names; included in various places
|
* Declarations of a list of "p_" names; included in various places
|
||||||
* to declare them as variables or as function members.
|
* to declare them as variables or as function members.
|
||||||
*
|
*
|
||||||
* $Id: plugin_api_decls.h,v 1.14 2003/06/03 02:32:56 gerald Exp $
|
* $Id: plugin_api_decls.h,v 1.15 2003/06/12 10:10:39 guy Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
||||||
|
@ -295,3 +295,6 @@ addr_except_pop p_except_pop;
|
||||||
addr_except_setup_try p_except_setup_try;
|
addr_except_setup_try p_except_setup_try;
|
||||||
|
|
||||||
addr_col_set_fence p_col_set_fence;
|
addr_col_set_fence p_col_set_fence;
|
||||||
|
|
||||||
|
addr_tvb_get_string p_tvb_get_string;
|
||||||
|
addr_tvb_get_stringz p_tvb_get_stringz;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* plugin_table.h
|
/* plugin_table.h
|
||||||
* Table of exported addresses for Ethereal plugins.
|
* Table of exported addresses for Ethereal plugins.
|
||||||
*
|
*
|
||||||
* $Id: plugin_table.h,v 1.64 2003/06/03 02:32:56 gerald Exp $
|
* $Id: plugin_table.h,v 1.65 2003/06/12 10:10:39 guy Exp $
|
||||||
*
|
*
|
||||||
* Ethereal - Network traffic analyzer
|
* Ethereal - Network traffic analyzer
|
||||||
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
* Copyright 2000 by Gilbert Ramirez <gram@alumni.rice.edu>
|
||||||
|
@ -333,6 +333,9 @@ typedef void (*addr_except_setup_try)(struct except_stacknode *, struct except_c
|
||||||
|
|
||||||
typedef void (*addr_col_set_fence)(column_info*, gint);
|
typedef void (*addr_col_set_fence)(column_info*, gint);
|
||||||
|
|
||||||
|
typedef gint (*addr_tvb_get_string)(tvbuff_t*, gint, gint);
|
||||||
|
typedef gint (*addr_tvb_get_stringz)(tvbuff_t*, gint, gint*);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
||||||
#include "plugin_api_decls.h"
|
#include "plugin_api_decls.h"
|
||||||
|
|
Loading…
Reference in New Issue