57 const void *reply_block,
58 size_t reply_block_size)
60 if ((NULL == reply_block) ||
61 (reply_block_size == 0) ||
62 (0 != ((
char *) reply_block)[0]))
Block does not match query (invalid result)
Handle to an initialized block library.
enum GNUNET_BLOCK_Type * types
0-terminated array of block types supported by this plugin.
Any type of block, used as a wildcard when searching.
GNUNET_BLOCK_EvaluationFunction evaluate
Main function of a block plugin.
GNUNET_BLOCK_Type
Blocks in the datastore and the datacache must have a unique type.
Each plugin is required to return a pointer to a struct of this type as the return value from its ent...
Block for testing set intersection.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
static struct GNUNET_DNSSTUB_Context * ctx
Context for DNS resolution.
Valid result, and there may be more.
struct GNUNET_HashCode key
The key used in the DHT.
void * libgnunet_plugin_block_seti_test_init(void *cls)
Entry point for the plugin.
GNUNET_BLOCK_EvaluationResult
Possible ways for how a block may relate to a query.
GNUNET_BLOCK_GetKeyFunction get_key
Obtain the key for a given block (if possible).
static int block_plugin_seti_test_get_key(void *cls, enum GNUNET_BLOCK_Type type, const void *block, size_t block_size, struct GNUNET_HashCode *key)
Function called to obtain the key for a block.
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model
void * cls
Closure for all of the callbacks.
GNUNET_BLOCK_EvaluationOptions
Flags that can be set to control the evaluation.
static enum GNUNET_BLOCK_EvaluationResult block_plugin_seti_test_evaluate(void *cls, struct GNUNET_BLOCK_Context *ctx, enum GNUNET_BLOCK_Type type, struct GNUNET_BLOCK_Group *group, enum GNUNET_BLOCK_EvaluationOptions eo, const struct GNUNET_HashCode *query, const void *xquery, size_t xquery_size, const void *reply_block, size_t reply_block_size)
Function called to validate a reply or a request.
void * libgnunet_plugin_block_seti_test_done(void *cls)
Exit point from the plugin.
#define GNUNET_free(ptr)
Wrapper around free.