Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

plugins.h
1 /* plugins.h
2 * definitions for plugins structures
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11 #ifndef __PLUGINS_H__
12 #define __PLUGINS_H__
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17
18 #include <glib.h>
19 #include <gmodule.h>
20
21 #include "ws_symbol_export.h"
22
23 typedef void (*plugin_register_func)(void);
24
25 typedef void plugins_t;
26
27 typedef enum {
28 WS_PLUGIN_EPAN,
29 WS_PLUGIN_WIRETAP,
30 WS_PLUGIN_CODEC
31 } plugin_type_e;
32
33 WS_DLL_PUBLIC plugins_t *plugins_init(plugin_type_e type);
34
35 typedef void (*plugin_description_callback)(const char *name, const char *version,
36 const char *types, const char *filename,
37 void *user_data);
38
39 WS_DLL_PUBLIC void plugins_get_descriptions(plugin_description_callback callback, void *user_data);
40
41 WS_DLL_PUBLIC void plugins_dump_all(void);
42
43 WS_DLL_PUBLIC int plugins_get_count(void);
44
45 WS_DLL_PUBLIC void plugins_cleanup(plugins_t *plugins);
46
47 #ifdef __cplusplus
48 }
49 #endif /* __cplusplus */
50
51 #endif /* __PLUGINS_H__ */
52
53 /*
54 * Editor modelines
55 *
56 * Local Variables:
57 * c-basic-offset: 4
58 * tab-width: 8
59 * indent-tabs-mode: nil
60 * End:
61 *
62 * ex: set shiftwidth=4 tabstop=8 expandtab:
63 * :indentSize=4:tabSize=8:noTabs=true:
64 */