aboutsummaryrefslogtreecommitdiffstats
path: root/epan/plugins.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-26 06:14:53 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-26 06:14:53 +0000
commite7ea7a34e9415d5dda11b9da61dd36e0c1e790d5 (patch)
treee73ffb66b940b64f9c31c97e9555d56f48989cb0 /epan/plugins.h
parentf72f3b786190af6c5dff8ff705be17586cb2d5d2 (diff)
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. svn path=/trunk/; revision=2940
Diffstat (limited to 'epan/plugins.h')
-rw-r--r--epan/plugins.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/plugins.h b/epan/plugins.h
index 1d25afb584..6cf329a344 100644
--- a/epan/plugins.h
+++ b/epan/plugins.h
@@ -1,7 +1,7 @@
/* plugins.h
* definitions for plugins structures
*
- * $Id: plugins.h,v 1.4 2000/11/18 21:41:37 guy Exp $
+ * $Id: plugins.h,v 1.5 2001/01/26 06:14:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -61,5 +61,6 @@ void plugin_replace_filter(const gchar *, const gchar *, const gchar *, dfilter
char *init_plugin(gchar *name, gchar *version);
int save_plugin_status(void);
void init_plugins(const char *);
+void register_all_plugin_handoffs(void);
#endif /* __PLUGINS_H__ */