diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-06 00:32:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-06 00:32:36 +0200 |
commit | 90e29258a5339d232ea1b22f3f83d61701b52358 (patch) | |
tree | 1dcdab00bbbafdc3a30c82c390f66af0d82ecba2 /src/include/gnunet_mq_lib.h | |
parent | e13828526819ba1b37877950b8cef75a4c7787b4 (diff) | |
download | gnunet-90e29258a5339d232ea1b22f3f83d61701b52358.tar.gz gnunet-90e29258a5339d232ea1b22f3f83d61701b52358.zip |
changes for AGPL handling
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r-- | src/include/gnunet_mq_lib.h | 18 |
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 | */ | ||
354 | struct GNUNET_MQ_MessageHandler * | ||
355 | GNUNET_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. |