diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-22 11:54:45 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-22 11:54:45 +0000 |
commit | 0e45db676d766db2299b96874cac1bef89cf42ea (patch) | |
tree | b4b23ea03729ed56914ba9ff3b64266efd3f591b /doc/README.developer | |
parent | cc99152f4e433f400c93c09ca0ae511e1a1e3295 (diff) |
Update to reflect changes in defines: REP_* > ENC_*
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33286 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'doc/README.developer')
-rw-r--r-- | doc/README.developer | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/README.developer b/doc/README.developer index bef14ae17f..f6af1ee373 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -923,13 +923,13 @@ dissect_PROTOABBREV(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset to the end of the packet. */ /* create display subtree for the protocol */ - ti = proto_tree_add_item(tree, proto_PROTOABBREV, tvb, 0, -1, REP_NA); + ti = proto_tree_add_item(tree, proto_PROTOABBREV, tvb, 0, -1, ENC_NA); PROTOABBREV_tree = proto_item_add_subtree(ti, ett_PROTOABBREV); /* add an item to the subtree, see section 1.6 for more information */ proto_tree_add_item(PROTOABBREV_tree, - hf_PROTOABBREV_FIELDABBREV, tvb, offset, len, REP_xxx); + hf_PROTOABBREV_FIELDABBREV, tvb, offset, len, ENC_xxx); /* Continue adding tree items to process the packet here */ @@ -2255,9 +2255,9 @@ proto_register_*() function) and a value. The value will be fetched from the tvbuff by proto_tree_add_item(), based on the type of the field and, for integral and Boolean fields, the byte order of the value; the byte order, for items for which that's relevant, is specified by the -'encoding' argument, which is REP_LITTLE_ENDIAN if the value is -little-endian and REP_BIG_ENDIAN if it is big-endian. If the byte order -is not relevant, use REP_NA (Not Applicable). In the future, other +'encoding' argument, which is ENC_LITTLE_ENDIAN if the value is +little-endian and ENC_BIG_ENDIAN if it is big-endian. If the byte order +is not relevant, use ENC_NA (Not Applicable). In the future, other elements of the encoding, such as the character encoding for character strings, might be supported. @@ -2281,7 +2281,7 @@ against the parent field, the first byte of the TH. The code to add the FID to the tree would be; proto_tree_add_item(bf_tree, hf_sna_th_fid, tvb, offset, 1, - REP_BIG_ENDIAN); + ENC_BIG_ENDIAN); The definition of the field already has the information about bitmasking and bitshifting, so it does the work of masking and shifting for us! @@ -2666,14 +2666,14 @@ skeleton of how the programmer might code this. proto_item *pi; pi = proto_tree_add_item(tree, hf_tr_rif_ring, ..., - REP_BIG_ENDIAN); + ENC_BIG_ENDIAN); PROTO_ITEM_SET_HIDDEN(pi); } for(i = 0; i < num_rings - 1; i++) { proto_item *pi; pi = proto_tree_add_item(tree, hf_tr_rif_bridge, ..., - REP_BIG_ENDIAN); + ENC_BIG_ENDIAN); PROTO_ITEM_SET_HIDDEN(pi); } @@ -3741,7 +3741,7 @@ static void dissect_cstr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) if (tree) { proto_tree_add_item(tree, hf_cstring, tvb, offset, len, - REP_NA); + ENC_NA); } offset += (guint)len; } |