diff options
Diffstat (limited to 'src/include/gnunet_block_plugin.h')
-rw-r--r-- | src/include/gnunet_block_plugin.h | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/src/include/gnunet_block_plugin.h b/src/include/gnunet_block_plugin.h index 885842157..6d1f2f103 100644 --- a/src/include/gnunet_block_plugin.h +++ b/src/include/gnunet_block_plugin.h | |||
@@ -50,15 +50,27 @@ | |||
50 | * @param reply_block_size number of bytes in reply block | 50 | * @param reply_block_size number of bytes in reply block |
51 | * @return characterization of result | 51 | * @return characterization of result |
52 | */ | 52 | */ |
53 | typedef enum GNUNET_BLOCK_EvaluationResult | 53 | typedef enum |
54 | (*GNUNET_BLOCK_EvaluationFunction) (void *cls, | 54 | GNUNET_BLOCK_EvaluationResult (*GNUNET_BLOCK_EvaluationFunction) (void *cls, |
55 | enum GNUNET_BLOCK_Type type, | 55 | enum |
56 | const GNUNET_HashCode * query, | 56 | GNUNET_BLOCK_Type |
57 | struct GNUNET_CONTAINER_BloomFilter ** | 57 | type, |
58 | bf, int32_t bf_mutator, | 58 | const |
59 | const void *xquery, size_t xquery_size, | 59 | GNUNET_HashCode |
60 | const void *reply_block, | 60 | * query, |
61 | size_t reply_block_size); | 61 | struct |
62 | GNUNET_CONTAINER_BloomFilter | ||
63 | ** bf, | ||
64 | int32_t | ||
65 | bf_mutator, | ||
66 | const void | ||
67 | *xquery, | ||
68 | size_t | ||
69 | xquery_size, | ||
70 | const void | ||
71 | *reply_block, | ||
72 | size_t | ||
73 | reply_block_size); | ||
62 | 74 | ||
63 | 75 | ||
64 | /** | 76 | /** |
@@ -74,11 +86,11 @@ typedef enum GNUNET_BLOCK_EvaluationResult | |||
74 | * GNUNET_SYSERR if type not supported | 86 | * GNUNET_SYSERR if type not supported |
75 | * (or if extracting a key from a block of this type does not work) | 87 | * (or if extracting a key from a block of this type does not work) |
76 | */ | 88 | */ |
77 | typedef int | 89 | typedef int (*GNUNET_BLOCK_GetKeyFunction) (void *cls, |
78 | (*GNUNET_BLOCK_GetKeyFunction) (void *cls, | 90 | enum GNUNET_BLOCK_Type type, |
79 | enum GNUNET_BLOCK_Type type, | 91 | const void *block, |
80 | const void *block, | 92 | size_t block_size, |
81 | size_t block_size, GNUNET_HashCode * key); | 93 | GNUNET_HashCode * key); |
82 | 94 | ||
83 | 95 | ||
84 | 96 | ||