Next: , Previous: , Up: Implementing a block plugin   [Contents]


4.7.3.4 Shutdown of the plugin

Following GNUnet’s general plugin API concept, the plugin must export a second function for cleaning up. It usually does very little.

void *
libgnunet_plugin_block_SERVICE_done (void *cls)
{
  struct GNUNET_TRANSPORT_PluginFunctions *api = cls;

  GNUNET_free (api);
  return NULL;
}