diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-28 21:12:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-28 21:12:03 +0000 |
commit | 3a2737d76679c68331fad0be0b89d8efdcde5079 (patch) | |
tree | 5bd4ef163438954cdcb75558e6368a297629b56d /src/block/plugin_block_template.c | |
parent | 9c46ed792caae948fd99cca44deaf5a265af7614 (diff) | |
download | gnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.tar.gz gnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.zip |
-extend block API to allow specifying flags, use this to allow reducing checks for replies from local DB
Diffstat (limited to 'src/block/plugin_block_template.c')
-rw-r--r-- | src/block/plugin_block_template.c | 13 |
1 files changed, 9 insertions, 4 deletions
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 @@ | |||
36 | * | 36 | * |
37 | * @param cls closure | 37 | * @param cls closure |
38 | * @param type block type | 38 | * @param type block type |
39 | * @param eo control flags | ||
39 | * @param query original query (hash) | 40 | * @param query original query (hash) |
40 | * @param bf pointer to bloom filter associated with query; possibly updated (!) | 41 | * @param bf pointer to bloom filter associated with query; possibly updated (!) |
41 | * @param bf_mutator mutation value for bf | 42 | * @param bf_mutator mutation value for bf |
@@ -46,11 +47,15 @@ | |||
46 | * @return characterization of result | 47 | * @return characterization of result |
47 | */ | 48 | */ |
48 | static enum GNUNET_BLOCK_EvaluationResult | 49 | static enum GNUNET_BLOCK_EvaluationResult |
49 | block_plugin_template_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | 50 | block_plugin_template_evaluate (void *cls, |
50 | const struct GNUNET_HashCode * query, | 51 | enum GNUNET_BLOCK_Type type, |
52 | enum GNUNET_BLOCK_EvaluationOptions eo, | ||
53 | const struct GNUNET_HashCode *query, | ||
51 | struct GNUNET_CONTAINER_BloomFilter **bf, | 54 | struct GNUNET_CONTAINER_BloomFilter **bf, |
52 | int32_t bf_mutator, const void *xquery, | 55 | int32_t bf_mutator, |
53 | size_t xquery_size, const void *reply_block, | 56 | const void *xquery, |
57 | size_t xquery_size, | ||
58 | const void *reply_block, | ||
54 | size_t reply_block_size) | 59 | size_t reply_block_size) |
55 | { | 60 | { |
56 | struct GNUNET_HashCode chash; | 61 | struct GNUNET_HashCode chash; |