proto.c:667:6: error: ‘dissector_plugins’ undeclared (first use in this function)
tap.c:773:20: error: ‘tap_plugins’ undeclared (first use in this function)
Change-Id: I8feaec4219dc97202bdb79d72399c5fd1d383e27
Reviewed-on: https://code.wireshark.org/review/20081
Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jakub Zawadzki <darkjames-ws@darkjames.pl>
{
add_plugin_type("dissector", check_for_dissector_plugin);
}
+
+static void
+dissector_plugin_destroy(gpointer p)
+{
+ g_free(p);
+}
+
#endif /* HAVE_PLUGINS */
/* initialize data structures and register protocols and fields */
tree_is_expanded = g_new0(guint32, (num_tree_types/32)+1);
}
-static void
-dissector_plugin_destroy(gpointer p)
-{
- g_free(p);
-}
-
static void
proto_cleanup_base(void)
{
{
proto_cleanup_base();
+#ifdef HAVE_PLUGINS
if (dissector_plugins) {
g_slist_free_full(dissector_plugins, dissector_plugin_destroy);
dissector_plugins = NULL;
}
+#endif
}
static gboolean
{
g_slist_foreach(tap_plugins, register_tap_plugin_listener, NULL);
}
+
+static void
+tap_plugin_destroy(gpointer p)
+{
+ g_free(p);
+}
+
#endif /* HAVE_PLUGINS */
/* **********************************************************************
return flags;
}
-static void
-tap_plugin_destroy(gpointer p)
-{
- g_free(p);
-}
-
void tap_cleanup(void)
{
volatile tap_listener_t *elem_lq;
g_free((gpointer)elem_dl);
}
+#ifdef HAVE_PLUGINS
g_slist_free_full(tap_plugins, tap_plugin_destroy);
+#endif
}
/*