struct returned by the initialization function of the plugin More...
#include <gnunet_namecache_plugin.h>
Data Fields | |
void * | cls |
Closure to pass to all plugin functions. More... | |
int(* | cache_block )(void *cls, const struct GNUNET_GNSRECORD_Block *block) |
Cache a block in the datastore. More... | |
int(* | lookup_block )(void *cls, const struct GNUNET_HashCode *query, GNUNET_NAMECACHE_BlockCallback iter, void *iter_cls) |
Get the block for a particular zone and label in the datastore. More... | |
struct returned by the initialization function of the plugin
Definition at line 68 of file gnunet_namecache_plugin.h.
void* GNUNET_NAMECACHE_PluginFunctions::cls |
Closure to pass to all plugin functions.
Definition at line 73 of file gnunet_namecache_plugin.h.
Referenced by handle_block_cache(), handle_lookup_block(), libgnunet_plugin_namecache_flat_done(), libgnunet_plugin_namecache_flat_init(), libgnunet_plugin_namecache_postgres_done(), libgnunet_plugin_namecache_postgres_init(), libgnunet_plugin_namecache_sqlite_done(), and libgnunet_plugin_namecache_sqlite_init().
int(* GNUNET_NAMECACHE_PluginFunctions::cache_block) (void *cls, const struct GNUNET_GNSRECORD_Block *block) |
Cache a block in the datastore.
Overwrites existing blocks for the same zone and label.
cls | closure (internal context for the plugin) |
block | block to cache |
Definition at line 83 of file gnunet_namecache_plugin.h.
Referenced by handle_block_cache(), libgnunet_plugin_namecache_flat_init(), libgnunet_plugin_namecache_postgres_init(), and libgnunet_plugin_namecache_sqlite_init().
int(* GNUNET_NAMECACHE_PluginFunctions::lookup_block) (void *cls, const struct GNUNET_HashCode *query, GNUNET_NAMECACHE_BlockCallback iter, void *iter_cls) |
Get the block for a particular zone and label in the datastore.
Will return at most one result to the iterator.
cls | closure (internal context for the plugin) |
query | hash of public key derived from the zone and the label |
iter | function to call with the result |
iter_cls | closure for iter |
Definition at line 97 of file gnunet_namecache_plugin.h.
Referenced by handle_lookup_block(), libgnunet_plugin_namecache_flat_init(), libgnunet_plugin_namecache_postgres_init(), and libgnunet_plugin_namecache_sqlite_init().