diff options
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 | ||