Wireshark-commits: [Wireshark-commits] master b8e40b6: Added usb_get_trans_info() function

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 7 Jun 2014 17:22:19 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b8e40b6f275216190ae08044f7f050f8ef488741
Submitter: Pascal Quantin (pascal.quantin@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

b8e40b6 by Sean O. Stalley (sean.stalley@xxxxxxxxx):

    Added usb_get_trans_info() function
    
    Moved code in usb_dissect_common() for getting/creating transfer
    info into it's own function.
    
    This is part of an effort to make dissect_usb_common() more modular
    so that code can be shared between the USB & the MAUSB dissector.
    
    Change-Id: I70f4f98536a6355e57b33eb01a9b5d8688183635
    Reviewed-on: https://code.wireshark.org/review/1993
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    

Actions performed:

    from  73217d9   tvb_new_subset -> tvb_new_subset_length when length parameters are equal. tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is.
    adds  b8e40b6   Added usb_get_trans_info() function


Summary of changes:
 epan/dissectors/packet-usb.c |  117 +++++++++++++++++++++++-------------------
 1 file changed, 64 insertions(+), 53 deletions(-)