diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2021-12-28 23:39:36 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2021-12-28 23:39:36 +0100 |
commit | 8d8976f00329ec326c4642a113e3767d011c396d (patch) | |
tree | f171832a44f2d5c5bb3e04ffd80a65ded1ba29e7 /src/include/gnunet_block_lib.h | |
parent | 88fb1d89ed483576a7f02060cd72be7761b2be3a (diff) | |
download | gnunet-8d8976f00329ec326c4642a113e3767d011c396d.tar.gz gnunet-8d8976f00329ec326c4642a113e3767d011c396d.zip |
revise block plugin design as per discussion with Martin today (only implemented for GNS)
Diffstat (limited to 'src/include/gnunet_block_lib.h')
-rw-r--r-- | src/include/gnunet_block_lib.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/include/gnunet_block_lib.h b/src/include/gnunet_block_lib.h index 341c7bb5c..50306b003 100644 --- a/src/include/gnunet_block_lib.h +++ b/src/include/gnunet_block_lib.h | |||
@@ -221,6 +221,44 @@ enum GNUNET_BLOCK_EvaluationResult | |||
221 | 221 | ||
222 | 222 | ||
223 | /** | 223 | /** |
224 | * Possible ways for how a block may relate to a query. | ||
225 | */ | ||
226 | enum GNUNET_BLOCK_ReplyEvaluationResult | ||
227 | { | ||
228 | /** | ||
229 | * Valid result, but suppressed because it is a duplicate. | ||
230 | */ | ||
231 | GNUNET_BLOCK_REPLY_OK_DUPLICATE = 0, | ||
232 | |||
233 | /** | ||
234 | * Valid result, and there may be more. | ||
235 | */ | ||
236 | GNUNET_BLOCK_REPLY_OK_MORE = 1, | ||
237 | |||
238 | /** | ||
239 | * Last possible valid result. | ||
240 | */ | ||
241 | GNUNET_BLOCK_REPLY_OK_LAST = 2, | ||
242 | |||
243 | /** | ||
244 | * Specified block type not supported by any plugin. | ||
245 | */ | ||
246 | GNUNET_BLOCK_REPLY_TYPE_NOT_SUPPORTED = -1 | ||
247 | |||
248 | /** | ||
249 | * Block does not match query (invalid result) | ||
250 | */ | ||
251 | GNUNET_BLOCK_REPLY_INVALID = -2, | ||
252 | |||
253 | /** | ||
254 | * Block does not match xquery (valid result, not relevant for the request) | ||
255 | */ | ||
256 | GNUNET_BLOCK_REPLY_IRRELEVANT = -3, | ||
257 | |||
258 | }; | ||
259 | |||
260 | |||
261 | /** | ||
224 | * Handle to an initialized block library. | 262 | * Handle to an initialized block library. |
225 | */ | 263 | */ |
226 | struct GNUNET_BLOCK_Context; | 264 | struct GNUNET_BLOCK_Context; |