GNUnet  0.20.0
023.c File Reference

Go to the source code of this file.


void * libgnunet_plugin_block_SERVICE_init (void *cls)

Function Documentation

◆ libgnunet_plugin_block_SERVICE_init()

void* libgnunet_plugin_block_SERVICE_init ( void *  cls)

Definition at line 2 of file 023.c.

3 {
4  static enum GNUNET_BLOCK_Type types[] =
5  {
8  };
12  api->evaluate = &block_plugin_SERICE_evaluate;
14  api->types = types;
15  return api;
16 }
static int block_plugin_SERVICE_get_key(void *cls, enum GNUNET_BLOCK_Type type, const void *block, size_t block_size, struct GNUNET_HashCode *key)
Definition: 022.c:2
WARNING: This header is generated! In order to add DHT block types, you must register them in GANA,...
Identifier for any block.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
Each plugin is required to return a pointer to a struct of this type as the return value from its ent...
enum GNUNET_BLOCK_Type * types
0-terminated array of block types supported by this plugin.
GNUNET_BLOCK_GetKeyFunction get_key
Obtain the key for a given block (if possible).

References block_plugin_SERVICE_get_key(), GNUNET_BLOCK_PluginFunctions::get_key, GNUNET_BLOCK_TYPE_ANY, GNUNET_new, and GNUNET_BLOCK_PluginFunctions::types.

Here is the call graph for this function: