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

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 16 Nov 1999 05:44:28 -0600 (CST)
guy         1999/11/16 05:44:24 CST

  Modified files:
    gtk                  proto_draw.c 
  Log:
  Replace the ETT_ "enum" members, declared in "packet.h", with
  dynamically-assigned "ett_" integer values, assigned by
  "proto_register_subtree_array()"; this:
  
  	obviates the need to update "packet.h" whenever you add a new
  	subtree type - you only have to add a call to
  	"proto_register_subtree_array()" to a "register" routine and an
  	array of pointers to "ett_", if they're not already there, and
  	add a pointer to the new "ett_" variable to the array, if they
  	are there;
  
  	would allow run-time-loaded dissectors to allocate subtree types
  	when they're loaded.
  
  Revision  Changes    Path
  1.5       +3 -3      ethereal/gtk/proto_draw.c