diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-20 01:48:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-20 01:48:57 +0000 |
commit | 392fee6d7ab6e50d3f2c34b43a05a57bb4d00f90 (patch) | |
tree | 0061714726838fd14e723eff2130d41912ab61c1 /prefs-int.h | |
parent | e4633bc783303fc849b9f3afcc39a588bca50c75 (diff) |
Support putting preferences into arbitrary places in a tree, which is
used to construct the "Edit->Preferences" dialog box; this includes the
ability to register a "subtree" for preferences. Instead of
special-casing protocol preferences, have a subtree "Protocols" for
protocol preferences.
svn path=/trunk/; revision=6808
Diffstat (limited to 'prefs-int.h')
-rw-r--r-- | prefs-int.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/prefs-int.h b/prefs-int.h index 15bc5d6b90..8c989bfcf1 100644 --- a/prefs-int.h +++ b/prefs-int.h @@ -2,7 +2,7 @@ * Definitions for implementation of preference handling routines; * used by "friends" of the preferences type. * - * $Id: prefs-int.h,v 1.9 2002/08/28 21:00:40 jmayer Exp $ + * $Id: prefs-int.h,v 1.10 2002/12/20 01:48:54 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -29,8 +29,9 @@ struct pref_module { const char *name; /* name of module */ const char *title; /* title of module (displayed in preferences notebook) */ + gboolean is_subtree; /* if TRUE, this has other modules, not preferences, under it */ void (*apply_cb)(void); /* routine to call when preferences applied */ - GList *prefs; /* list of its preferences */ + GList *prefs; /* list of its preferences or submodules */ int numprefs; /* number of non-obsolete preferences */ gboolean prefs_changed; /* if TRUE, a preference has changed since we last checked */ gboolean obsolete; /* if TRUE, this is a module that used to @@ -38,6 +39,11 @@ struct pref_module { }; /* + * Module used for protocol preferences. + */ +extern module_t *protocols_module; + +/* * PREF_OBSOLETE is used for preferences that a module used to support * but no longer supports; we give different error messages for them. */ |