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/include/gnunet_block_plugin.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/include/gnunet_block_plugin.h') diff --git a/src/include/gnunet_block_plugin.h b/src/include/gnunet_block_plugin.h index b4a60b463..a588dde69 100644 --- a/src/include/gnunet_block_plugin.h +++ b/src/include/gnunet_block_plugin.h @@ -42,6 +42,7 @@ * * @param cls closure * @param type block type + * @param eo evaluation options to control evaluation * @param query original query (hash) * @param bf pointer to bloom filter associated with query; possibly updated (!) * @param bf_mutator mutation value for @a bf @@ -54,6 +55,7 @@ typedef enum GNUNET_BLOCK_EvaluationResult (*GNUNET_BLOCK_EvaluationFunction) (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, @@ -76,11 +78,12 @@ typedef enum GNUNET_BLOCK_EvaluationResult * #GNUNET_SYSERR if type not supported * (or if extracting a key from a block of this type does not work) */ -typedef int (*GNUNET_BLOCK_GetKeyFunction) (void *cls, - enum GNUNET_BLOCK_Type type, - const void *block, - size_t block_size, - struct GNUNET_HashCode * key); +typedef int +(*GNUNET_BLOCK_GetKeyFunction) (void *cls, + enum GNUNET_BLOCK_Type type, + const void *block, + size_t block_size, + struct GNUNET_HashCode *key); -- cgit v1.2.3