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/include/gnunet_block_plugin.h | |
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/include/gnunet_block_plugin.h')
-rw-r--r-- | src/include/gnunet_block_plugin.h | 13 |
1 files changed, 8 insertions, 5 deletions
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 @@ | |||
42 | * | 42 | * |
43 | * @param cls closure | 43 | * @param cls closure |
44 | * @param type block type | 44 | * @param type block type |
45 | * @param eo evaluation options to control evaluation | ||
45 | * @param query original query (hash) | 46 | * @param query original query (hash) |
46 | * @param bf pointer to bloom filter associated with query; possibly updated (!) | 47 | * @param bf pointer to bloom filter associated with query; possibly updated (!) |
47 | * @param bf_mutator mutation value for @a bf | 48 | * @param bf_mutator mutation value for @a bf |
@@ -54,6 +55,7 @@ | |||
54 | typedef enum GNUNET_BLOCK_EvaluationResult | 55 | typedef enum GNUNET_BLOCK_EvaluationResult |
55 | (*GNUNET_BLOCK_EvaluationFunction) (void *cls, | 56 | (*GNUNET_BLOCK_EvaluationFunction) (void *cls, |
56 | enum GNUNET_BLOCK_Type type, | 57 | enum GNUNET_BLOCK_Type type, |
58 | enum GNUNET_BLOCK_EvaluationOptions eo, | ||
57 | const struct GNUNET_HashCode *query, | 59 | const struct GNUNET_HashCode *query, |
58 | struct GNUNET_CONTAINER_BloomFilter **bf, | 60 | struct GNUNET_CONTAINER_BloomFilter **bf, |
59 | int32_t bf_mutator, | 61 | int32_t bf_mutator, |
@@ -76,11 +78,12 @@ typedef enum GNUNET_BLOCK_EvaluationResult | |||
76 | * #GNUNET_SYSERR if type not supported | 78 | * #GNUNET_SYSERR if type not supported |
77 | * (or if extracting a key from a block of this type does not work) | 79 | * (or if extracting a key from a block of this type does not work) |
78 | */ | 80 | */ |
79 | typedef int (*GNUNET_BLOCK_GetKeyFunction) (void *cls, | 81 | typedef int |
80 | enum GNUNET_BLOCK_Type type, | 82 | (*GNUNET_BLOCK_GetKeyFunction) (void *cls, |
81 | const void *block, | 83 | enum GNUNET_BLOCK_Type type, |
82 | size_t block_size, | 84 | const void *block, |
83 | struct GNUNET_HashCode * key); | 85 | size_t block_size, |
86 | struct GNUNET_HashCode *key); | ||
84 | 87 | ||
85 | 88 | ||
86 | 89 | ||