aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_block_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_block_plugin.h')
-rw-r--r--src/include/gnunet_block_plugin.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/include/gnunet_block_plugin.h b/src/include/gnunet_block_plugin.h
index 1fa7ccf8b..6f9e8e9dc 100644
--- a/src/include/gnunet_block_plugin.h
+++ b/src/include/gnunet_block_plugin.h
@@ -49,9 +49,9 @@
49 */ 49 */
50typedef void 50typedef void
51(*GNUNET_BLOCK_GroupMarkSeenFunction)( 51(*GNUNET_BLOCK_GroupMarkSeenFunction)(
52 struct GNUNET_BLOCK_Group *bg, 52 struct GNUNET_BLOCK_Group *bg,
53 const struct GNUNET_HashCode *seen_results, 53 const struct GNUNET_HashCode *seen_results,
54 unsigned int seen_results_count); 54 unsigned int seen_results_count);
55 55
56 56
57/** 57/**
@@ -72,7 +72,6 @@ typedef enum GNUNET_GenericReturnValue
72 * Serialize state of a block group. 72 * Serialize state of a block group.
73 * 73 *
74 * @param bg group to serialize 74 * @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 75 * @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 76 * @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 77 * @return #GNUNET_OK on success, #GNUNET_NO if serialization is not
@@ -80,7 +79,6 @@ typedef enum GNUNET_GenericReturnValue
80 */ 79 */
81typedef enum GNUNET_GenericReturnValue 80typedef enum GNUNET_GenericReturnValue
82(*GNUNET_BLOCK_GroupSerializeFunction)(struct GNUNET_BLOCK_Group *bg, 81(*GNUNET_BLOCK_GroupSerializeFunction)(struct GNUNET_BLOCK_Group *bg,
83 uint32_t *nonce,
84 void **raw_data, 82 void **raw_data,
85 size_t *raw_data_size); 83 size_t *raw_data_size);
86 84
@@ -156,7 +154,6 @@ struct GNUNET_BLOCK_Group
156typedef struct GNUNET_BLOCK_Group * 154typedef struct GNUNET_BLOCK_Group *
157(*GNUNET_BLOCK_GroupCreateFunction)(void *cls, 155(*GNUNET_BLOCK_GroupCreateFunction)(void *cls,
158 enum GNUNET_BLOCK_Type type, 156 enum GNUNET_BLOCK_Type type,
159 uint32_t nonce,
160 const void *raw_data, 157 const void *raw_data,
161 size_t raw_data_size, 158 size_t raw_data_size,
162 va_list va); 159 va_list va);
@@ -238,11 +235,11 @@ typedef enum GNUNET_BLOCK_ReplyEvaluationResult
238 * #GNUNET_SYSERR if @a type not supported 235 * #GNUNET_SYSERR if @a type not supported
239 */ 236 */
240typedef enum GNUNET_GenericReturnValue 237typedef enum GNUNET_GenericReturnValue
241(*GNUNET_BLOCK_GetKeyFunction) (void *cls, 238(*GNUNET_BLOCK_GetKeyFunction)(void *cls,
242 enum GNUNET_BLOCK_Type type, 239 enum GNUNET_BLOCK_Type type,
243 const void *block, 240 const void *block,
244 size_t block_size, 241 size_t block_size,
245 struct GNUNET_HashCode *key); 242 struct GNUNET_HashCode *key);
246 243
247 244
248/** 245/**
@@ -285,7 +282,7 @@ struct GNUNET_BLOCK_PluginFunctions
285 /** 282 /**
286 * Check that a reply block matches a query. 283 * Check that a reply block matches a query.
287 */ 284 */
288 GNUNET_BLOCK_ReplyEvaluationFunction check_reply; 285 GNUNET_BLOCK_ReplyEvaluationFunction check_reply;
289 286
290}; 287};
291 288