aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-03-06 20:51:50 +0000
committerBill Meier <wmeier@newsguy.com>2012-03-06 20:51:50 +0000
commitae54957153bdade57c5c9e68c2bd0538ff4f1a34 (patch)
treeeb2f345bf7580d078657ec812f996fcd6ce81adf /doc
parentbe89c3824beb311c4d4a9afdec054992910a44f7 (diff)
Emphasize corrext usage of FT_BOOLEAN 'display' field.
Specificaly: For a field type FT_BOOLEAN: - If the bitmask field is zero, then the 'display' field must be 'BASE_NONE'; - If the bitmask field is non-zero, then the 'display' field must be the field-width of the parent bit field. svn path=/trunk/; revision=41379
Diffstat (limited to 'doc')
-rw-r--r--doc/README.developer34
1 files changed, 20 insertions, 14 deletions
diff --git a/doc/README.developer b/doc/README.developer
index e4ed35cbd9..79cd3d695e 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -1130,24 +1130,27 @@ FIELDTYPE FT_NONE, FT_BOOLEAN, FT_UINT8, FT_UINT16, FT_UINT24,
FT_RELATIVE_TIME, FT_STRING, FT_STRINGZ, FT_EUI64,
FT_UINT_STRING, FT_ETHER, FT_BYTES, FT_UINT_BYTES, FT_IPv4,
FT_IPv6, FT_IPXNET, FT_FRAMENUM, FT_PROTOCOL, FT_GUID, FT_OID
-FIELDDISPLAY For FT_UINT{8,16,24,32,64} and FT_INT{8,16,24,32,64):
+FIELDDISPLAY --For FT_UINT{8,16,24,32,64} and FT_INT{8,16,24,32,64):
- BASE_DEC, BASE_HEX, BASE_OCT, BASE_DEC_HEX, BASE_HEX_DEC,
- or BASE_CUSTOM, possibly ORed with BASE_RANGE_STRING
+ BASE_DEC, BASE_HEX, BASE_OCT, BASE_DEC_HEX, BASE_HEX_DEC,
+ or BASE_CUSTOM, possibly ORed with BASE_RANGE_STRING
- For FT_ABSOLUTE_TIME:
+ --For FT_ABSOLUTE_TIME:
- ABSOLUTE_TIME_LOCAL, ABSOLUTE_TIME_UTC, or
- ABSOLUTE_TIME_DOY_UTC
+ ABSOLUTE_TIME_LOCAL, ABSOLUTE_TIME_UTC, or
+ ABSOLUTE_TIME_DOY_UTC
- For FT_BOOLEAN if BITMASK is non-zero:
+ --For FT_BOOLEAN:
- Number of bits in the field containing the FT_BOOLEAN
- bitfield
+ if BITMASK is non-zero:
+ Number of bits in the field containing the FT_BOOLEAN
+ bitfield.
+ otherwise:
+ (must be) BASE_NONE
- For all other types:
+ --For all other types:
- BASE_NONE
+ BASE_NONE
FIELDCONVERT VALS(x), RVALS(x), TFS(x), NULL
BITMASK Usually 0x0 unless using the TFS(x) field conversion.
FIELDDESCR A brief description of the field, or NULL. [Please do not use ""].
@@ -1825,9 +1828,12 @@ custom_fmt_func_t in epan/proto.h, specifically:
The first argument is a pointer to a buffer of the ITEM_LABEL_LENGTH size
and the second argument is the value to be formatted.
-For FT_BOOLEAN fields that are also bitfields (i.e. 'bitmask' is non-zero),
-'display' is used to tell the proto_tree how wide the parent bitfield is.
-With integers this is not needed since the type of integer itself
+For FT_BOOLEAN fields that are also bitfields (i.e., 'bitmask' is non-zero),
+'display' is used specify a "field-width" (i.e., tell the proto_tree how
+wide the parent bitfield is). (If the FT_BOOLEAN 'bitmask' is zero, then
+'display' must be BASE_NONE).
+
+For integer fields a "field-width" is not needed since the type of integer itself
(FT_UINT8, FT_UINT16, FT_UINT24, FT_UINT32, etc.) tells the proto_tree how
wide the parent bitfield is.