aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-31 23:43:05 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-31 23:43:05 +0200
commitedddc9384e9bc4331d57291de7318bbe401e49b0 (patch)
treebe9387df3a4fa4e8cb71590501fb3740920c5bb6 /src/include
parent02a2c3560aa08c3c7f389706b0e24007e2010bc5 (diff)
downloadgnunet-edddc9384e9bc4331d57291de7318bbe401e49b0.tar.gz
gnunet-edddc9384e9bc4331d57291de7318bbe401e49b0.zip
protocol change: swap xquery and result filter, integrate mutator with result filter
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_block_group_lib.h2
-rw-r--r--src/include/gnunet_block_lib.h3
-rw-r--r--src/include/gnunet_block_plugin.h21
3 files changed, 9 insertions, 17 deletions
diff --git a/src/include/gnunet_block_group_lib.h b/src/include/gnunet_block_group_lib.h
index b03e913c6..d242ceefb 100644
--- a/src/include/gnunet_block_group_lib.h
+++ b/src/include/gnunet_block_group_lib.h
@@ -68,7 +68,6 @@ GNUNET_BLOCK_GROUP_compute_bloomfilter_size (unsigned int entry_count,
68 * @param bf_size size of the Bloom filter 68 * @param bf_size size of the Bloom filter
69 * @param bf_k K-value for the Bloom filter 69 * @param bf_k K-value for the Bloom filter
70 * @param type block type 70 * @param type block type
71 * @param nonce random value used to seed the group creation
72 * @param raw_data optional serialized prior state of the group, NULL if unavailable/fresh 71 * @param raw_data optional serialized prior state of the group, NULL if unavailable/fresh
73 * @param raw_data_size number of bytes in @a raw_data, 0 if unavailable/fresh 72 * @param raw_data_size number of bytes in @a raw_data, 0 if unavailable/fresh
74 * @return block group handle, NULL if block groups are not supported 73 * @return block group handle, NULL if block groups are not supported
@@ -79,7 +78,6 @@ GNUNET_BLOCK_GROUP_bf_create (void *cls,
79 size_t bf_size, 78 size_t bf_size,
80 unsigned int bf_k, 79 unsigned int bf_k,
81 enum GNUNET_BLOCK_Type type, 80 enum GNUNET_BLOCK_Type type,
82 uint32_t nonce,
83 const void *raw_data, 81 const void *raw_data,
84 size_t raw_data_size); 82 size_t raw_data_size);
85 83
diff --git a/src/include/gnunet_block_lib.h b/src/include/gnunet_block_lib.h
index fb417412f..af61dcfb0 100644
--- a/src/include/gnunet_block_lib.h
+++ b/src/include/gnunet_block_lib.h
@@ -138,7 +138,6 @@ struct GNUNET_BLOCK_Group;
138struct GNUNET_BLOCK_Group * 138struct GNUNET_BLOCK_Group *
139GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx, 139GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx,
140 enum GNUNET_BLOCK_Type type, 140 enum GNUNET_BLOCK_Type type,
141 uint32_t nonce,
142 const void *raw_data, 141 const void *raw_data,
143 size_t raw_data_size, 142 size_t raw_data_size,
144 ...); 143 ...);
@@ -148,7 +147,6 @@ GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx,
148 * Serialize state of a block group. 147 * Serialize state of a block group.
149 * 148 *
150 * @param bg group to serialize 149 * @param bg group to serialize
151 * @param[out] nonce set to the nonce of the @a bg
152 * @param[out] raw_data set to the serialized state 150 * @param[out] raw_data set to the serialized state
153 * @param[out] raw_data_size set to the number of bytes in @a raw_data 151 * @param[out] raw_data_size set to the number of bytes in @a raw_data
154 * @return #GNUNET_OK on success, #GNUNET_NO if serialization is not 152 * @return #GNUNET_OK on success, #GNUNET_NO if serialization is not
@@ -156,7 +154,6 @@ GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx,
156 */ 154 */
157enum GNUNET_GenericReturnValue 155enum GNUNET_GenericReturnValue
158GNUNET_BLOCK_group_serialize (struct GNUNET_BLOCK_Group *bg, 156GNUNET_BLOCK_group_serialize (struct GNUNET_BLOCK_Group *bg,
159 uint32_t *nonce,
160 void **raw_data, 157 void **raw_data,
161 size_t *raw_data_size); 158 size_t *raw_data_size);
162 159
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