Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan epan.c plugins.c plugins.h proto.c prot
guy 2001/01/26 00:14:51 CST
Modified files:
epan epan.c plugins.c plugins.h proto.c
proto.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.5 +2 -6 ethereal/epan/epan.c
1.19 +35 -16 ethereal/epan/plugins.c
1.5 +2 -1 ethereal/epan/plugins.h
1.5 +22 -9 ethereal/epan/proto.c
1.4 +2 -2 ethereal/epan/proto.h