aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugin_table.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-03 07:53:48 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-03 07:53:48 +0000
commit3613c121fe53a2bcd70a3004a589bc38ecc2864d (patch)
tree8b8fd854a5439a0fff7bcda55cebf9e519245b3c /plugins/plugin_table.h
parentfee98dd94462787123ec7fa0d660044a4b1800c4 (diff)
Add a new "prefs_register_protocol()" routine, which is like
"prefs_register_module()" except that it takes a protocol index as returned by "proto_register_protocol()" as its first argument, rather than taking two character strings as arguments as its first two arguments, and uses the protocol's abbreviation as the name to use for preferences in the preferences file and the "-o" flag and uses the protocol's short name as the name to use in the tabs in the "Edit->Preferences" window. svn path=/trunk/; revision=2812
Diffstat (limited to 'plugins/plugin_table.h')
-rw-r--r--plugins/plugin_table.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/plugin_table.h b/plugins/plugin_table.h
index f8507279c2..f26b867b4e 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.12 2001/01/03 07:37:29 guy Exp $
+ * $Id: plugin_table.h,v 1.13 2001/01/03 07:53:47 guy Exp $
*
* Ethereal - Network traffic analyzer
* Copyright 2000 by Gilbert Ramirez <gram@xiexie.org>
@@ -163,8 +163,8 @@ typedef gint (*addr_tvb_strncaseeql)(tvbuff_t*, gint, const guint8 *, gint);
typedef gchar *(*addr_tvb_bytes_to_str)(tvbuff_t*, gint, gint len);
-typedef struct pref_module *(*addr_prefs_register_module)(const char *,
- const char *, void (*)(void));
+typedef struct pref_module *(*addr_prefs_register_protocol)(int,
+ void (*)(void));
typedef void (*addr_prefs_register_uint_preference)(struct pref_module *,
const char *, const char *, const char *, guint, guint *);
typedef void (*addr_prefs_register_bool_preference)(struct pref_module *,
@@ -295,7 +295,7 @@ typedef struct {
addr_tvb_bytes_to_str p_tvb_bytes_to_str;
- addr_prefs_register_module p_prefs_register_module;
+ addr_prefs_register_protocol p_prefs_register_protocol;
addr_prefs_register_uint_preference p_prefs_register_uint_preference;
addr_prefs_register_bool_preference p_prefs_register_bool_preference;
addr_prefs_register_enum_preference p_prefs_register_enum_preference;