Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk packet_win.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxx>
Date: Fri, 6 Oct 2000 05:12:05 -0500 (CDT)
gram        2000/10/06 05:11:54 CDT

  Modified files:
    gtk                  packet_win.c 
  Log:
  Implement epan_dissect_new() and epan_dissect_free(). These are the
  "top-level" dissectors that libepan-users call, instead of dissect_packet().
  The epan_dissect_t holds the tvbuff after dissection so that the tvbuff's
  memory is not cleared until after the proto_tree is freed. (I might stuff
  the proto_tree into the epan_dissect_t, too).
  
  What remains of dissect_packet() in packet.c handles the tvbuff initialiation.
  The real meat of dissect_packet() is now in dissect_frame(), in packet-frame.c
  This means that "packet.c" is no longer a dissector, os it is no longer
  passed to make-reg-dotc.
  
  Once dissect_fddi() gets two wrapper functions (dissect_fddi_swapped()
  and dissect_fddi_nonswapped()), the a dissector handoff routine could
  be used instead of the switch statement in dissect_frame(). I'd register
  a field like "wtap.encap"
  
  Revision  Changes    Path
  1.16      +5 -2      ethereal/gtk/packet_win.c