2
0

023.c 413 B

1234567891011121314151617
  1. void *
  2. libgnunet_plugin_block_SERVICE_init (void *cls)
  3. {
  4. static enum GNUNET_BLOCK_Type types[] =
  5. {
  6. GNUNET_BLOCK_TYPE_SERVICE_BLOCKYPE,
  7. GNUNET_BLOCK_TYPE_ANY
  8. };
  9. struct GNUNET_BLOCK_PluginFunctions *api;
  10. api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions);
  11. api->evaluate = &block_plugin_SERICE_evaluate;
  12. api->get_key = &block_plugin_SERVICE_get_key;
  13. api->types = types;
  14. return api;
  15. }