Rename FIELDBASE to FIELDDISPLAY, as it's a "how to display this"
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 15 Apr 2010 20:54:27 +0000 (20:54 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 15 Apr 2010 20:54:27 +0000 (20:54 +0000)
indication, not necessarily a base (the base is "how to display" some
numeric fields, but it's not how to display some other fields).

Note that FIELDDISPLAY is the number of bits in the field containing an
FT_BOOLEAN bitfield.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32480 f5534014-38df-0310-8fa8-9805f1628bb7

doc/README.developer

index 2a44c88d67923d502f865f69c6a616f7844f257a..5913a9ea66b87109595400f7f0cbbdcd34cc90a0 100644 (file)
@@ -931,7 +931,7 @@ proto_register_PROTOABBREV(void)
        static hf_register_info hf[] = {
                { &hf_PROTOABBREV_FIELDABBREV,
                        { "FIELDNAME",           "PROTOABBREV.FIELDABBREV",
-                       FIELDTYPE, FIELDBASE, FIELDCONVERT, BITMASK,
+                       FIELDTYPE, FIELDDISPLAY, FIELDCONVERT, BITMASK,
                        "FIELDDESCR", HFILL }
                }
        };
@@ -1085,7 +1085,7 @@ FIELDTYPE FT_NONE, FT_BOOLEAN, FT_UINT8, FT_UINT16, FT_UINT24,
                FT_RELATIVE_TIME, FT_STRING, FT_STRINGZ, FT_EBCDIC,
                FT_UINT_STRING, FT_ETHER, FT_BYTES, FT_UINT_BYTES, FT_IPv4,
                FT_IPv6, FT_IPXNET, FT_FRAMENUM, FT_PROTOCOL, FT_GUID, FT_OID
-FIELDBASE      For FT_UINT{8,16,24,32} and FT_INT{8,16,24,32):
+FIELDDISPLAY   For FT_UINT{8,16,24,32} and FT_INT{8,16,24,32):
 
                BASE_DEC, BASE_HEX, BASE_OCT, BASE_DEC_HEX, BASE_HEX_DEC,
                or BASE_CUSTOM, possibly ORed with BASE_RANGE_STRING
@@ -1095,6 +1095,11 @@ FIELDBASE        For FT_UINT{8,16,24,32} and FT_INT{8,16,24,32):
                ABSOLUTE_TIME_LOCAL, ABSOLUTE_TIME_UTC, or
                ABSOLUTE_TIME_DOY_UTC
 
+               For FT_BOOLEAN if BITMASK is non-zero:
+
+               Number of bits in the field containing the FT_BOOLEAN
+               bitfield
+
                For all other types:
 
                BASE_NONE