| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
dfilter-plugin.h
Go to the documentation of this file.
1
9
10#ifndef DFILTER_PLUGIN_H
11#define DFILTER_PLUGIN_H
12
13#include <wireshark.h>
14
15#include <epan/dfilter/dfunctions.h>
16
20 typedef struct {
21 void (*init)(void);
22 void (*cleanup)(void);
23} dfilter_plugin;
24
26 extern GSList *dfilter_plugins;
27
33WS_DLL_PUBLIC
34 void dfilter_plugins_register(const dfilter_plugin *plugin);
35
41
42 void dfilter_plugins_init(void);
43
50 void dfilter_plugins_cleanup(void);
51
52#endif /* DFILTER_PLUGIN_H */
dfilter_plugins
GSList * dfilter_plugins
Definition dfilter-plugin.c:22
dfilter_plugins_init
void dfilter_plugins_init(void)
Initialize all registered DFilter plugins.
Definition dfilter-plugin.c:29
dfilter_plugins_register
WS_DLL_PUBLIC void dfilter_plugins_register(const dfilter_plugin *plugin)
Registers a DFilter plugin.
Definition dfilter-plugin.c:24
dfilter_plugins_cleanup
void dfilter_plugins_cleanup(void)
Cleans up all registered DFilter plugins.
Definition dfilter-plugin.c:37
dfunctions.h
dfilter_plugin
Describes a display filter plugin, providing lifecycle callbacks for initialization and cleanup.
Definition dfilter-plugin.h:20
dfilter_plugin::cleanup
void(* cleanup)(void)
Definition dfilter-plugin.h:22
dfilter_plugin::init
void(* init)(void)
Definition dfilter-plugin.h:21