Wireshark  4.3.0
The Wireshark network protocol analyzer
plugins.h
Go to the documentation of this file.
1 
11 #ifndef __PLUGINS_H__
12 #define __PLUGINS_H__
13 
14 #include <wireshark.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
19 
20 typedef void (*plugin_register_func)(void);
21 
22 typedef void plugins_t;
23 
24 typedef enum {
25  WS_PLUGIN_EPAN,
26  WS_PLUGIN_WIRETAP,
27  WS_PLUGIN_CODEC
28 } plugin_type_e;
29 
30 WS_DLL_PUBLIC plugins_t *plugins_init(plugin_type_e type);
31 
32 typedef void (*plugin_description_callback)(const char *name, const char *version,
33  const char *types, const char *filename,
34  void *user_data);
35 
36 WS_DLL_PUBLIC void plugins_get_descriptions(plugin_description_callback callback, void *user_data);
37 
38 WS_DLL_PUBLIC void plugins_dump_all(void);
39 
40 WS_DLL_PUBLIC int plugins_get_count(void);
41 
42 WS_DLL_PUBLIC void plugins_cleanup(plugins_t *plugins);
43 
44 WS_DLL_PUBLIC bool plugins_supported(void);
45 
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49 
50 #endif /* __PLUGINS_H__ */
51 
52 /*
53  * Editor modelines
54  *
55  * Local Variables:
56  * c-basic-offset: 4
57  * tab-width: 8
58  * indent-tabs-mode: nil
59  * End:
60  *
61  * ex: set shiftwidth=4 tabstop=8 expandtab:
62  * :indentSize=4:tabSize=8:noTabs=true:
63  */