aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-05-24 02:25:21 +0000
committerGuy Harris <guy@alum.mit.edu>2004-05-24 02:25:21 +0000
commit911bad80f01e1a526cb5db6a1c8b67224a0eb6fd (patch)
treeea0dc09abb3bad519585a3c81e2c1592383a9bc7 /prefs.h
parent9cccb951f0afece3eb83d45275d903852298839c (diff)
Have two strings in an enum_val_t - one that's a short string that is
convenient to put into a command line (no capital letters, no spaces to require quotes), and one that's a detailed description for use in the UI. Allow either of them in the preferences file or "-o" option; use the detailed description in the UI, and also use it when writing the preferences out, so that the preference will be readable by older versions of Ethereal (assuming the preference existed in that version). Update "README.developer" to give more detail about an enum_val_t (and to put the _t in), and to give a more detailed description of the "radio_buttons" argument to "prefs_register_enum_preference()". svn path=/trunk/; revision=10982
Diffstat (limited to 'prefs.h')
-rw-r--r--prefs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/prefs.h b/prefs.h
index 11f296cccb..722a77589d 100644
--- a/prefs.h
+++ b/prefs.h
@@ -1,7 +1,7 @@
/* prefs.h
* Definitions for preference handling routines
*
- * $Id: prefs.h,v 1.63 2004/05/13 16:34:29 jmayer Exp $
+ * $Id: prefs.h,v 1.64 2004/05/24 02:25:20 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -255,6 +255,7 @@ extern void prefs_register_bool_preference(module_t *module, const char *name,
*/
typedef struct {
char *name;
+ char *description;
gint value;
} enum_val_t;