Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dfilter / dfilter-plugin.c
blob0e886d0889150d4b7bc2cd38bc14b20a3f410d1b
1 /** @file
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 2001 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #include "dfilter-plugin.h"
12 /** @file
14 * Wireshark - Network traffic analyzer
15 * By Gerald Combs <gerald@wireshark.org>
16 * Copyright 2001 Gerald Combs
18 * SPDX-License-Identifier: GPL-2.0-or-later
21 /* DFilter plugins share the name with the function it implements. */
22 GSList *dfilter_plugins;
24 void dfilter_plugins_register(const dfilter_plugin *plug)
26 dfilter_plugins = g_slist_prepend(dfilter_plugins, (gpointer)plug);
29 void dfilter_plugins_init(void)
31 for (GSList *l = dfilter_plugins; l != NULL; l = l->next) {
32 dfilter_plugin *plug = l->data;
33 plug->init();
37 void dfilter_plugins_cleanup(void)
39 for (GSList *l = dfilter_plugins; l != NULL; l = l->next) {
40 dfilter_plugin *plug = l->data;
41 plug->cleanup();
43 g_slist_free(dfilter_plugins);
44 dfilter_plugins = NULL;