aboutsummaryrefslogtreecommitdiff
path: root/src/block/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/block.c')
-rw-r--r--src/block/block.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/block/block.c b/src/block/block.c
index 5824946f7..2e3c1dc70 100644
--- a/src/block/block.c
+++ b/src/block/block.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2010, 2017, 2021 GNUnet e.V. 3 Copyright (C) 2010, 2017, 2021, 2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -255,35 +255,6 @@ GNUNET_BLOCK_group_create (struct GNUNET_BLOCK_Context *ctx,
255} 255}
256 256
257 257
258enum GNUNET_BLOCK_EvaluationResult
259GNUNET_BLOCK_evaluate (struct GNUNET_BLOCK_Context *ctx,
260 enum GNUNET_BLOCK_Type type,
261 struct GNUNET_BLOCK_Group *group,
262 enum GNUNET_BLOCK_EvaluationOptions eo,
263 const struct GNUNET_HashCode *query,
264 const void *xquery,
265 size_t xquery_size,
266 const void *reply_block,
267 size_t reply_block_size)
268{
269 struct GNUNET_BLOCK_PluginFunctions *plugin = find_plugin (ctx,
270 type);
271
272 if (NULL == plugin)
273 return GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED;
274 return plugin->evaluate (plugin->cls,
275 ctx,
276 type,
277 group,
278 eo,
279 query,
280 xquery,
281 xquery_size,
282 reply_block,
283 reply_block_size);
284}
285
286
287enum GNUNET_GenericReturnValue 258enum GNUNET_GenericReturnValue
288GNUNET_BLOCK_get_key (struct GNUNET_BLOCK_Context *ctx, 259GNUNET_BLOCK_get_key (struct GNUNET_BLOCK_Context *ctx,
289 enum GNUNET_BLOCK_Type type, 260 enum GNUNET_BLOCK_Type type,
@@ -327,7 +298,6 @@ GNUNET_BLOCK_check_query (struct GNUNET_BLOCK_Context *ctx,
327enum GNUNET_GenericReturnValue 298enum GNUNET_GenericReturnValue
328GNUNET_BLOCK_check_block (struct GNUNET_BLOCK_Context *ctx, 299GNUNET_BLOCK_check_block (struct GNUNET_BLOCK_Context *ctx,
329 enum GNUNET_BLOCK_Type type, 300 enum GNUNET_BLOCK_Type type,
330 const struct GNUNET_HashCode *query,
331 const void *block, 301 const void *block,
332 size_t block_size) 302 size_t block_size)
333{ 303{
@@ -338,7 +308,6 @@ GNUNET_BLOCK_check_block (struct GNUNET_BLOCK_Context *ctx,
338 return GNUNET_SYSERR; 308 return GNUNET_SYSERR;
339 return plugin->check_block (plugin->cls, 309 return plugin->check_block (plugin->cls,
340 type, 310 type,
341 query,
342 block, 311 block,
343 block_size); 312 block_size);
344} 313}