Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] rev 40264: /trunk/epan/ /trunk/epan/: tvbuff-int.h tvbuff.c

Date: Wed, 21 Dec 2011 17:39:03 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=40264

User: wmeier
Date: 2011/12/21 09:39 AM

Log:
 A simplified version of tvbuffs:
 - Essentially no changes from current dissector de facto tvbuff usage;
 - Do away with 'usage_counts' and with 'used_in' GSLists;
 - Manage tvb chains via a simple doubly linked list.
 - API changes:
   a. tvb_increment_usage_count() and tvb_decrement_usage_count() no
      longer exist;
   b. tvb_free_chain() can only be called for the 'top-level' (initial)
      tvb of a chain) or for a tvb not in a chain.
   c. tvb_free() now just calls tvb_free_chain() [should have no impact
      on existing  dissectors].

Directory: /trunk/epan/
  Changes    Path            Action
  +4 -6      tvbuff-int.h    Modified
  +87 -104   tvbuff.c        Modified
  +52 -45    tvbuff.h        Modified