1999-12-09 20:43:38 +00:00
|
|
|
/* plugins.h
|
|
|
|
* definitions for plugins structures
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2009-10-23 17:52:18 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
1999-12-09 20:43:38 +00:00
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
1999-12-09 20:43:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PLUGINS_H__
|
|
|
|
#define __PLUGINS_H__
|
|
|
|
|
2021-02-10 14:32:18 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
2021-03-16 11:33:00 +00:00
|
|
|
#include <gmodule.h>
|
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
2010-12-01 18:25:18 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2017-09-30 23:56:03 +00:00
|
|
|
typedef void (*plugin_register_func)(void);
|
|
|
|
|
|
|
|
typedef void plugins_t;
|
|
|
|
|
2018-01-05 17:09:40 +00:00
|
|
|
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);
|
2017-09-30 23:56:03 +00:00
|
|
|
|
2017-09-25 19:42:29 +00:00
|
|
|
typedef void (*plugin_description_callback)(const char *name, const char *version,
|
|
|
|
const char *types, const char *filename,
|
|
|
|
void *user_data);
|
2017-09-30 23:56:03 +00:00
|
|
|
|
2013-12-02 08:30:29 +00:00
|
|
|
WS_DLL_PUBLIC void plugins_get_descriptions(plugin_description_callback callback, void *user_data);
|
2017-09-30 23:56:03 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC void plugins_dump_all(void);
|
2017-09-30 23:56:03 +00:00
|
|
|
|
2017-10-22 19:30:07 +00:00
|
|
|
WS_DLL_PUBLIC int plugins_get_count(void);
|
2017-09-30 23:56:03 +00:00
|
|
|
|
|
|
|
WS_DLL_PUBLIC void plugins_cleanup(plugins_t *plugins);
|
2004-05-20 13:48:25 +00:00
|
|
|
|
2010-12-01 18:25:18 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
1999-12-09 20:43:38 +00:00
|
|
|
#endif /* __PLUGINS_H__ */
|
2013-11-17 14:03:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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:
|
|
|
|
*/
|