Go to the source code of this file.
◆ libgnunet_plugin_block_SERVICE_init()
void * libgnunet_plugin_block_SERVICE_init |
( |
void * |
cls | ) |
|
Definition at line 2 of file 023.c.
3{
5 {
6 GNUNET_BLOCK_TYPE_SERVICE_BLOCKYPE,
8 };
10
12 api->evaluate = &block_plugin_SERICE_evaluate;
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)
#define GNUNET_new(type)
Allocate a struct or union of the given type.
GNUNET_BLOCK_Type
WARNING: This header is generated! In order to add DHT block types, you must register them in GANA,...
@ GNUNET_BLOCK_TYPE_ANY
Identifier for any block.
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.