diff options
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; |