diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /wsutil/plugins.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | wsutil/plugins.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/wsutil/plugins.h b/wsutil/plugins.h new file mode 100644 index 0000000..96f3ac0 --- /dev/null +++ b/wsutil/plugins.h @@ -0,0 +1,63 @@ +/** @file + * definitions for plugins structures + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef __PLUGINS_H__ +#define __PLUGINS_H__ + +#include <wireshark.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +typedef void (*plugin_register_func)(void); + +typedef void plugins_t; + +typedef enum { + WS_PLUGIN_EPAN, + WS_PLUGIN_WIRETAP, + WS_PLUGIN_CODEC +} plugin_type_e; + +WS_DLL_PUBLIC plugins_t *plugins_init(plugin_type_e type); + +typedef void (*plugin_description_callback)(const char *name, const char *version, + const char *types, const char *filename, + void *user_data); + +WS_DLL_PUBLIC void plugins_get_descriptions(plugin_description_callback callback, void *user_data); + +WS_DLL_PUBLIC void plugins_dump_all(void); + +WS_DLL_PUBLIC int plugins_get_count(void); + +WS_DLL_PUBLIC void plugins_cleanup(plugins_t *plugins); + +WS_DLL_PUBLIC bool plugins_supported(void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __PLUGINS_H__ */ + +/* + * Editor modelines + * + * Local Variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * ex: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */ |