aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mq_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r--src/include/gnunet_mq_lib.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index fe699c48f..daf1869fb 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -340,6 +340,24 @@ GNUNET_MQ_copy_handlers (const struct GNUNET_MQ_MessageHandler *handlers);
340 340
341 341
342/** 342/**
343 * Copy an array of handlers, appending AGPL handler.
344 *
345 * Useful if the array has been delared in local memory and needs to be
346 * persisted for future use.
347 *
348 * @param handlers Array of handlers to be copied. Can be NULL (nothing done).
349 * @param agpl_handler function to call for AGPL handling
350 * @param agpl_cls closure for @a agpl_handler
351 * @return A newly allocated array of handlers.
352 * Needs to be freed with #GNUNET_free.
353 */
354struct GNUNET_MQ_MessageHandler *
355GNUNET_MQ_copy_handlers2 (const struct GNUNET_MQ_MessageHandler *handlers,
356 GNUNET_MQ_MessageCallback agpl_handler,
357 void *agpl_cls);
358
359
360/**
343 * Count the handlers in a handler array. 361 * Count the handlers in a handler array.
344 * 362 *
345 * @param handlers Array of handlers to be counted. 363 * @param handlers Array of handlers to be counted.