summaryrefslogtreecommitdiffstats
path: root/epan/dfilter/dfilter-plugin.h
blob: 86ed49c98a81c94cda344ca3f2d8a60f1a12f8ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @file
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 2001 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef DFILTER_PLUGIN_H
#define DFILTER_PLUGIN_H

#include <wireshark.h>

#include <epan/dfilter/dfunctions.h>

typedef struct {
	void (*init)(void);
	void (*cleanup)(void);
} dfilter_plugin;

extern GSList *dfilter_plugins;

WS_DLL_PUBLIC
void dfilter_plugins_register(const dfilter_plugin *plugin);

void dfilter_plugins_init(void);

void dfilter_plugins_cleanup(void);

#endif /* DFILTER_PLUGIN_H */