/**
* Array of our plugins.
*/
-static struct Plugin **plugins;
+static struct Plugin **gns_plugins;
/**
* Size of the 'plugins' array.
plugin = GNUNET_new (struct Plugin);
plugin->api = api;
plugin->library_name = GNUNET_strdup (library_name);
- GNUNET_array_append (plugins, num_plugins, plugin);
+ GNUNET_array_append (gns_plugins, num_plugins, plugin);
}
for (i = 0; i < num_plugins; i++)
{
- plugin = plugins[i];
+ plugin = gns_plugins[i];
GNUNET_break (NULL ==
GNUNET_PLUGIN_unload (plugin->library_name,
plugin->api));
GNUNET_free (plugin->library_name);
GNUNET_free (plugin);
}
- GNUNET_free (plugins);
+ GNUNET_free_non_null (gns_plugins);
+ gns_plugins = NULL;
once = 0;
num_plugins = 0;
}
init ();
for (i = 0; i < num_plugins; i++)
{
- plugin = plugins[i];
+ plugin = gns_plugins[i];
if (NULL != (ret = plugin->api->value_to_string (plugin->api->cls,
type,
data,
init ();
for (i = 0; i < num_plugins; i++)
{
- plugin = plugins[i];
+ plugin = gns_plugins[i];
if (GNUNET_OK == plugin->api->string_to_value (plugin->api->cls,
type,
s,
init ();
for (i = 0; i < num_plugins; i++)
{
- plugin = plugins[i];
+ plugin = gns_plugins[i];
if (UINT32_MAX != (ret = plugin->api->typename_to_number (plugin->api->cls,
dns_typename)))
return ret;
init ();
for (i = 0; i < num_plugins; i++)
{
- plugin = plugins[i];
+ plugin = gns_plugins[i];
if (NULL != (ret = plugin->api->number_to_typename (plugin->api->cls,
type)))
return ret;