/*
* Callback for each plugin found.
*/
+DIAG_OFF(pedantic)
static gboolean
check_for_codec_plugin(GModule *handle)
{
codec_plugins = g_slist_prepend(codec_plugins, plugin);
return TRUE;
}
+DIAG_ON(pedantic)
void
codec_register_plugin_types(void)
/*
* Callback for each plugin found.
*/
+DIAG_OFF(pedantic)
static gboolean
check_for_dissector_plugin(GModule *handle)
{
* Do we have a register routine?
*/
if (g_module_symbol(handle, "plugin_register", &gp)) {
-DIAG_OFF(pedantic)
register_protoinfo = (void (*)(void))gp;
-DIAG_ON(pedantic)
}
else {
register_protoinfo = NULL;
* Do we have a reg_handoff routine?
*/
if (g_module_symbol(handle, "plugin_reg_handoff", &gp)) {
-DIAG_OFF(pedantic)
reg_handoff = (void (*)(void))gp;
-DIAG_ON(pedantic)
}
else {
reg_handoff = NULL;
dissector_plugins = g_slist_prepend(dissector_plugins, plugin);
return TRUE;
}
+DIAG_ON(pedantic)
static void
register_dissector_plugin(gpointer data, gpointer user_data _U_)
/*
* Callback for each plugin found.
*/
+DIAG_OFF(pedantic)
static gboolean
check_for_tap_plugin(GModule *handle)
{
/*
* Yes - this plugin includes one or more taps.
*/
-DIAG_OFF(pedantic)
register_tap_listener_fn = (void (*)(void))gp;
-DIAG_ON(pedantic)
/*
* Add this one to the list of tap plugins.
tap_plugins = g_slist_prepend(tap_plugins, plugin);
return TRUE;
}
+DIAG_ON(pedantic)
void
register_tap_plugin_type(void)
/*
* Callback for each plugin found.
*/
+DIAG_OFF(pedantic)
static gboolean
check_for_wtap_plugin(GModule *handle)
{
gpointer gp;
+ void (*register_wtap_module)(void);
wtap_plugin *plugin;
/*
/*
* Yes - this plugin includes one or more wiretap modules.
+ */
+ register_wtap_module = (void (*)(void))gp;
+
+ /*
* Add this one to the list of wiretap module plugins.
*/
plugin = (wtap_plugin *)g_malloc(sizeof (wtap_plugin));
-DIAG_OFF(pedantic)
- plugin->register_wtap_module = (void (*)(void))gp;
-DIAG_ON(pedantic)
+ plugin->register_wtap_module = register_wtap_module;
wtap_plugins = g_slist_prepend(wtap_plugins, plugin);
return TRUE;
}
+DIAG_ON(pedantic)
static void
wtap_register_plugin_types(void)