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
10 #include "dfilter-plugin.h"
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
;
37 void dfilter_plugins_cleanup(void)
39 for (GSList
*l
= dfilter_plugins
; l
!= NULL
; l
= l
->next
) {
40 dfilter_plugin
*plug
= l
->data
;
43 g_slist_free(dfilter_plugins
);
44 dfilter_plugins
= NULL
;