diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-20 09:43:28 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-20 16:43:56 +0000 |
commit | ce3d2ff3ded3eccb9d64c6cb46c64ad8f8a837b9 (patch) | |
tree | 8a4ddc4ec1607716254ada75c607094da614f131 /epan/dissectors/packet-btrfcomm.c | |
parent | 4df6b5178496422ddfc3b9256af763b847d1a2c7 (diff) |
Rename dissector_add_handle() to dissector_add_for_decode_as().
Hopefully that name makes it clear what the routiner's purpose is, and
will encourage people to use it rather than using dissector_add_uint()
with a bogus integer value.
Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8
Reviewed-on: https://code.wireshark.org/review/2483
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-btrfcomm.c')
-rw-r--r-- | epan/dissectors/packet-btrfcomm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-btrfcomm.c b/epan/dissectors/packet-btrfcomm.c index d8fc59ffab..c9c5670f01 100644 --- a/epan/dissectors/packet-btrfcomm.c +++ b/epan/dissectors/packet-btrfcomm.c @@ -1201,7 +1201,7 @@ void proto_reg_handoff_btrfcomm(void) { dissector_add_uint("btl2cap.psm", BTL2CAP_PSM_RFCOMM, btrfcomm_handle); - dissector_add_handle("btl2cap.cid", btrfcomm_handle); + dissector_add_for_decode_as("btl2cap.cid", btrfcomm_handle); data_handle = find_dissector("data"); } @@ -1280,7 +1280,7 @@ void proto_reg_handoff_btdun(void) { dissector_add_uint("btrfcomm.service", BTSDP_DUN_SERVICE_UUID, btdun_handle); - dissector_add_handle("btrfcomm.channel", btdun_handle); + dissector_add_for_decode_as("btrfcomm.channel", btdun_handle); ppp_handle = find_dissector("ppp_raw_hdlc"); } @@ -1345,7 +1345,7 @@ void proto_reg_handoff_btspp(void) { dissector_add_uint("btrfcomm.service", BTSDP_SPP_SERVICE_UUID, btspp_handle); - dissector_add_handle("btrfcomm.channel", btspp_handle); + dissector_add_for_decode_as("btrfcomm.channel", btspp_handle); } @@ -1398,7 +1398,7 @@ proto_reg_handoff_btgnss(void) { dissector_add_uint("btrfcomm.service", BTSDP_GNSS_UUID, btgnss_handle); dissector_add_uint("btrfcomm.service", BTSDP_GNSS_SERVER_UUID, btgnss_handle); - dissector_add_handle("btrfcomm.channel", btgnss_handle); + dissector_add_for_decode_as("btrfcomm.channel", btgnss_handle); } /* |