aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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 /plugins
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 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index 2c87ae2c0b..65f0288809 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2003 by Matthijs Melchior <matthijs.melchior@xs4all.nl>
*
- * $Id: packet-asn1.c,v 1.22 2004/03/23 21:19:58 guy Exp $
+ * $Id: packet-asn1.c,v 1.23 2004/05/24 02:25:21 guy Exp $
*
* A plugin for:
*
@@ -4637,17 +4637,17 @@ void
proto_register_asn1(void) {
static const enum_val_t type_recursion_opts[] = {
- { "0", 0 },
- { "1", 1 },
- { "2", 2 },
- { "3", 3 },
- { "4", 4 },
- { "5", 5 },
- { "6", 6 },
- { "7", 7 },
- { "8", 8 },
- { "9", 9 },
- { NULL, -1},
+ { "0", "0", 0 },
+ { "1", "1", 1 },
+ { "2", "2", 2 },
+ { "3", "3", 3 },
+ { "4", "4", 4 },
+ { "4", "5", 5 },
+ { "6", "6", 6 },
+ { "7", "7", 7 },
+ { "8", "8", 8 },
+ { "9", "9", 9 },
+ { NULL, NULL, -1},
};
static gint *ett[1+MAX_NEST+MAXPDU];