20typedef void (*plugin_register_func)(void);
21typedef uint32_t (*plugin_describe_func)(void);
23typedef void plugins_t;
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)
38WS_DLL_PUBLIC plugins_t *plugins_init(plugin_type_e type);
40typedef void (*plugin_description_callback)(
const char *name,
const char *version,
41 uint32_t flags,
const char *filename,
44WS_DLL_PUBLIC
void plugins_get_descriptions(plugin_description_callback callback,
void *user_data);
46WS_DLL_PUBLIC
void plugins_dump_all(
void);
48WS_DLL_PUBLIC
int plugins_get_count(
void);
50WS_DLL_PUBLIC
void plugins_cleanup(plugins_t *plugins);
52WS_DLL_PUBLIC
bool plugins_supported(
void);