diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-24 02:25:21 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-24 02:25:21 +0000 |
commit | 19543e35901862a33b72ca7db78717d3e2673d53 (patch) | |
tree | ea0dc09abb3bad519585a3c81e2c1592383a9bc7 /prefs.h | |
parent | d55e2cbd95c2ea0ea9d3e63ff40d3f1db8aabf49 (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()".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10982 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'prefs.h')
-rw-r--r-- | prefs.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |