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_test.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_test.c')
-rw-r--r-- | src/block/plugin_block_test.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/block/plugin_block_test.c b/src/block/plugin_block_test.c index 8c476aaa3..6859f4f67 100644 --- a/src/block/plugin_block_test.c +++ b/src/block/plugin_block_test.c | |||
@@ -41,6 +41,7 @@ | |||
41 | * | 41 | * |
42 | * @param cls closure | 42 | * @param cls closure |
43 | * @param type block type | 43 | * @param type block type |
44 | * @param eo control flags | ||
44 | * @param query original query (hash) | 45 | * @param query original query (hash) |
45 | * @param bf pointer to bloom filter associated with query; possibly updated (!) | 46 | * @param bf pointer to bloom filter associated with query; possibly updated (!) |
46 | * @param bf_mutator mutation value for @a bf | 47 | * @param bf_mutator mutation value for @a bf |
@@ -51,11 +52,15 @@ | |||
51 | * @return characterization of result | 52 | * @return characterization of result |
52 | */ | 53 | */ |
53 | static enum GNUNET_BLOCK_EvaluationResult | 54 | static enum GNUNET_BLOCK_EvaluationResult |
54 | block_plugin_test_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | 55 | block_plugin_test_evaluate (void *cls, |
55 | const struct GNUNET_HashCode * query, | 56 | enum GNUNET_BLOCK_Type type, |
57 | enum GNUNET_BLOCK_EvaluationOptions eo, | ||
58 | const struct GNUNET_HashCode *query, | ||
56 | struct GNUNET_CONTAINER_BloomFilter **bf, | 59 | struct GNUNET_CONTAINER_BloomFilter **bf, |
57 | int32_t bf_mutator, const void *xquery, | 60 | int32_t bf_mutator, |
58 | size_t xquery_size, const void *reply_block, | 61 | const void *xquery, |
62 | size_t xquery_size, | ||
63 | const void *reply_block, | ||
59 | size_t reply_block_size) | 64 | size_t reply_block_size) |
60 | { | 65 | { |
61 | struct GNUNET_HashCode chash; | 66 | struct GNUNET_HashCode chash; |