From 3a2737d76679c68331fad0be0b89d8efdcde5079 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Feb 2015 21:12:03 +0000 Subject: -extend block API to allow specifying flags, use this to allow reducing checks for replies from local DB --- src/block/plugin_block_template.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/block/plugin_block_template.c') diff --git a/src/block/plugin_block_template.c b/src/block/plugin_block_template.c index 9132d7557..3cb648db7 100644 --- a/src/block/plugin_block_template.c +++ b/src/block/plugin_block_template.c @@ -36,6 +36,7 @@ * * @param cls closure * @param type block type + * @param eo control flags * @param query original query (hash) * @param bf pointer to bloom filter associated with query; possibly updated (!) * @param bf_mutator mutation value for bf @@ -46,11 +47,15 @@ * @return characterization of result */ static enum GNUNET_BLOCK_EvaluationResult -block_plugin_template_evaluate (void *cls, enum GNUNET_BLOCK_Type type, - const struct GNUNET_HashCode * query, +block_plugin_template_evaluate (void *cls, + enum GNUNET_BLOCK_Type type, + enum GNUNET_BLOCK_EvaluationOptions eo, + const struct GNUNET_HashCode *query, struct GNUNET_CONTAINER_BloomFilter **bf, - int32_t bf_mutator, const void *xquery, - size_t xquery_size, const void *reply_block, + int32_t bf_mutator, + const void *xquery, + size_t xquery_size, + const void *reply_block, size_t reply_block_size) { struct GNUNET_HashCode chash; -- cgit v1.2.3