Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/plugins plugin_api.c plugin_api.h plugin_tab

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Jan 2001 00:14:53 -0600 (CST)
guy         2001/01/26 00:14:52 CST

  Modified files:
    plugins              plugin_api.c plugin_api.h plugin_table.h 
  Log:
  Clean up the dissector registration up a bit - arrange that all plugins
  be loaded and their initialization routines called in right after we
  call the initialization routines for built-in dissectors, but don't call
  their handoff registration routines yet, and then call the handoff
  registration routines right after calling the handoff registration
  routines for built-in dissectors.
  
  Do all that in "proto_init()", rather than "epan_init()".
  
  That way, we call all dissector registration routines together, and then
  call all dissector handoff registration routines together; all the
  registration routines are called before any handoff registration
  routines, as is required, and, as "proto_init()" is called by
  "epan_init()" before "dfilter_init()" is called, all filterable fields
  have been registered before "dfilter_init()" is called, and no plugins
  have to call "dfilter_init()" themselves to get their fields registered.
  
  Remove pointers to "dfilter_init()" and "dfilter_cleanup()" from the
  plugin address table, as plugins shouldn't be calling them any more, and
  remove calls to them from plugins.
  
  Revision  Changes    Path
  1.16      +1 -3      ethereal/plugins/plugin_api.c
  1.16      +1 -5      ethereal/plugins/plugin_api.h
  1.16      +1 -7      ethereal/plugins/plugin_table.h