diff options
Diffstat (limited to 'src/include/gnunet_block_plugin.h')
-rw-r--r-- | src/include/gnunet_block_plugin.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/include/gnunet_block_plugin.h b/src/include/gnunet_block_plugin.h index 1fa7ccf8b..16e93c780 100644 --- a/src/include/gnunet_block_plugin.h +++ b/src/include/gnunet_block_plugin.h | |||
@@ -19,6 +19,9 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup dht_libs DHT and support libraries | ||
23 | * @{ | ||
24 | * | ||
22 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
23 | * | 26 | * |
24 | * @file | 27 | * @file |
@@ -35,6 +38,7 @@ | |||
35 | #ifndef PLUGIN_BLOCK_H | 38 | #ifndef PLUGIN_BLOCK_H |
36 | #define PLUGIN_BLOCK_H | 39 | #define PLUGIN_BLOCK_H |
37 | 40 | ||
41 | |||
38 | #include "gnunet_util_lib.h" | 42 | #include "gnunet_util_lib.h" |
39 | #include "gnunet_block_lib.h" | 43 | #include "gnunet_block_lib.h" |
40 | 44 | ||
@@ -49,9 +53,9 @@ | |||
49 | */ | 53 | */ |
50 | typedef void | 54 | typedef void |
51 | (*GNUNET_BLOCK_GroupMarkSeenFunction)( | 55 | (*GNUNET_BLOCK_GroupMarkSeenFunction)( |
52 | struct GNUNET_BLOCK_Group *bg, | 56 | struct GNUNET_BLOCK_Group *bg, |
53 | const struct GNUNET_HashCode *seen_results, | 57 | const struct GNUNET_HashCode *seen_results, |
54 | unsigned int seen_results_count); | 58 | unsigned int seen_results_count); |
55 | 59 | ||
56 | 60 | ||
57 | /** | 61 | /** |
@@ -72,7 +76,6 @@ typedef enum GNUNET_GenericReturnValue | |||
72 | * Serialize state of a block group. | 76 | * Serialize state of a block group. |
73 | * | 77 | * |
74 | * @param bg group to serialize | 78 | * @param bg group to serialize |
75 | * @param[out] nonce set to the nonce of the @a bg | ||
76 | * @param[out] raw_data set to the serialized state | 79 | * @param[out] raw_data set to the serialized state |
77 | * @param[out] raw_data_size set to the number of bytes in @a raw_data | 80 | * @param[out] raw_data_size set to the number of bytes in @a raw_data |
78 | * @return #GNUNET_OK on success, #GNUNET_NO if serialization is not | 81 | * @return #GNUNET_OK on success, #GNUNET_NO if serialization is not |
@@ -80,7 +83,6 @@ typedef enum GNUNET_GenericReturnValue | |||
80 | */ | 83 | */ |
81 | typedef enum GNUNET_GenericReturnValue | 84 | typedef enum GNUNET_GenericReturnValue |
82 | (*GNUNET_BLOCK_GroupSerializeFunction)(struct GNUNET_BLOCK_Group *bg, | 85 | (*GNUNET_BLOCK_GroupSerializeFunction)(struct GNUNET_BLOCK_Group *bg, |
83 | uint32_t *nonce, | ||
84 | void **raw_data, | 86 | void **raw_data, |
85 | size_t *raw_data_size); | 87 | size_t *raw_data_size); |
86 | 88 | ||
@@ -156,7 +158,6 @@ struct GNUNET_BLOCK_Group | |||
156 | typedef struct GNUNET_BLOCK_Group * | 158 | typedef struct GNUNET_BLOCK_Group * |
157 | (*GNUNET_BLOCK_GroupCreateFunction)(void *cls, | 159 | (*GNUNET_BLOCK_GroupCreateFunction)(void *cls, |
158 | enum GNUNET_BLOCK_Type type, | 160 | enum GNUNET_BLOCK_Type type, |
159 | uint32_t nonce, | ||
160 | const void *raw_data, | 161 | const void *raw_data, |
161 | size_t raw_data_size, | 162 | size_t raw_data_size, |
162 | va_list va); | 163 | va_list va); |
@@ -238,11 +239,11 @@ typedef enum GNUNET_BLOCK_ReplyEvaluationResult | |||
238 | * #GNUNET_SYSERR if @a type not supported | 239 | * #GNUNET_SYSERR if @a type not supported |
239 | */ | 240 | */ |
240 | typedef enum GNUNET_GenericReturnValue | 241 | typedef enum GNUNET_GenericReturnValue |
241 | (*GNUNET_BLOCK_GetKeyFunction) (void *cls, | 242 | (*GNUNET_BLOCK_GetKeyFunction)(void *cls, |
242 | enum GNUNET_BLOCK_Type type, | 243 | enum GNUNET_BLOCK_Type type, |
243 | const void *block, | 244 | const void *block, |
244 | size_t block_size, | 245 | size_t block_size, |
245 | struct GNUNET_HashCode *key); | 246 | struct GNUNET_HashCode *key); |
246 | 247 | ||
247 | 248 | ||
248 | /** | 249 | /** |
@@ -285,10 +286,12 @@ struct GNUNET_BLOCK_PluginFunctions | |||
285 | /** | 286 | /** |
286 | * Check that a reply block matches a query. | 287 | * Check that a reply block matches a query. |
287 | */ | 288 | */ |
288 | GNUNET_BLOCK_ReplyEvaluationFunction check_reply; | 289 | GNUNET_BLOCK_ReplyEvaluationFunction check_reply; |
289 | 290 | ||
290 | }; | 291 | }; |
291 | 292 | ||
292 | #endif | 293 | #endif |
293 | 294 | ||
294 | /** @} */ /* end of group */ | 295 | /** @} */ /* end of group */ |
296 | |||
297 | /** @} */ /* end of group addition */ | ||