diff options
author | Olivier Abad <oabad@noos.fr> | 2000-03-31 21:42:24 +0000 |
---|---|---|
committer | Olivier Abad <oabad@noos.fr> | 2000-03-31 21:42:24 +0000 |
commit | 26736850671e10e9dede404b97e24fceeaf300ee (patch) | |
tree | e5f2b24c4fe2c2829daf0977fbca349aef52f6ad /plugins.h | |
parent | 87e3becab56b527585cf125d1f2e908aac1ef79a (diff) |
Add a counter : "enabled_plugins_number", to record how many plugins are
enabled. The counter is incremented in enable_plugin() and decremented
in disable_plugin().
In add_packet_to_packet_list(), we check this counter (instead of
plugin_list) to see if there is at least one enabled plugin. If this is
the case, we must build the protocol tree.
svn path=/trunk/; revision=1770
Diffstat (limited to 'plugins.h')
-rw-r--r-- | plugins.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* plugins.h * definitions for plugins structures * - * $Id: plugins.h,v 1.5 2000/01/15 00:22:34 gram Exp $ + * $Id: plugins.h,v 1.6 2000/03/31 21:42:24 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -64,6 +64,7 @@ typedef struct _plugin { } plugin; extern plugin *plugin_list; +extern guint32 enabled_plugins_number; int add_plugin(void *, gchar *, gchar *, gchar *, gchar *, dfilter *, void (*) (const u_char *, int, frame_data *, proto_tree *)); |