Revert "UNUSED enc_key_id_{equal,hash}"
[wireshark-sm.git] / wsutil / plugins.h
blob113f1f687dd756181a8207d9b527a34242113db0
1 /** @file
2 * definitions for plugins structures
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #ifndef __PLUGINS_H__
12 #define __PLUGINS_H__
14 #include <wireshark.h>
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
20 typedef void (*plugin_register_func)(void);
21 typedef uint32_t (*plugin_describe_func)(void);
23 typedef void plugins_t;
25 typedef enum {
26 WS_PLUGIN_EPAN,
27 WS_PLUGIN_WIRETAP,
28 WS_PLUGIN_CODEC
29 } plugin_type_e;
31 #define WS_PLUGIN_DESC_DISSECTOR (1UL << 0)
32 #define WS_PLUGIN_DESC_FILE_TYPE (1UL << 1)
33 #define WS_PLUGIN_DESC_CODEC (1UL << 2)
34 #define WS_PLUGIN_DESC_EPAN (1UL << 3)
35 #define WS_PLUGIN_DESC_TAP_LISTENER (1UL << 4)
36 #define WS_PLUGIN_DESC_DFILTER (1UL << 5)
38 WS_DLL_PUBLIC plugins_t *plugins_init(plugin_type_e type);
40 typedef void (*plugin_description_callback)(const char *name, const char *version,
41 uint32_t flags, const char *filename,
42 void *user_data);
44 WS_DLL_PUBLIC void plugins_get_descriptions(plugin_description_callback callback, void *user_data);
46 WS_DLL_PUBLIC void plugins_dump_all(void);
48 WS_DLL_PUBLIC int plugins_get_count(void);
50 WS_DLL_PUBLIC void plugins_cleanup(plugins_t *plugins);
52 WS_DLL_PUBLIC bool plugins_supported(void);
54 #ifdef __cplusplus
56 #endif /* __cplusplus */
58 #endif /* __PLUGINS_H__ */
61 * Editor modelines
63 * Local Variables:
64 * c-basic-offset: 4
65 * tab-width: 8
66 * indent-tabs-mode: nil
67 * End:
69 * ex: set shiftwidth=4 tabstop=8 expandtab:
70 * :indentSize=4:tabSize=8:noTabs=true: