diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-12-02 08:30:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-12-02 08:30:29 +0000 |
commit | 0cc1545d05be6f655c950904b1da776190f3af16 (patch) | |
tree | b82725615b527304bfb2e9e7d9f3b6dfc50ce7fd /epan/epan.c | |
parent | baf569188ac49ad38912b82d23ff241321cd654f (diff) |
Move most of the plugin code from epan to wsutil and remove all
knowledge of particular types of plugins. Instead, let particular types
of plugins register with the common plugin code, giving a name and a
routine to recognize that type of plugin.
In particular applications, only process the relevant plugin types.
Add a Makefile.common to the codecs directory.
svn path=/trunk/; revision=53710
Diffstat (limited to 'epan/epan.c')
-rw-r--r-- | epan/epan.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/epan.c b/epan/epan.c index 6cb06f4c7b..80a4648e73 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -74,6 +74,20 @@ epan_get_version(void) { return VERSION; } +/* + * Register all the plugin types that are part of libwireshark, namely + * dissector and tap plugins. + * + * Must be called before init_plugins(), which must be called before + * any registration routines are called. + */ +void +epan_register_plugin_types(void) +{ + register_dissector_plugin_type(); + register_tap_plugin_type(); +} + void epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer client_data), void (*register_all_handoffs_func)(register_cb cb, gpointer client_data), |