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.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index b527b58e8..a50a59c49 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -305,6 +305,30 @@ GNUNET_MQ_dll_remove (struct GNUNET_MQ_Envelope **env_head,
305 305
306 306
307/** 307/**
308 * Copy an array of handlers.
309 *
310 * Useful if the array has been delared in local memory and needs to be
311 * persisted for future use.
312 *
313 * @param handlers Array of handlers to be copied.
314 * @return A newly allocated array of handlers.
315 * Needs to be freed with #GNUNET_free.
316 */
317struct GNUNET_MQ_MessageHandler *
318GNUNET_MQ_copy_handlers (const struct GNUNET_MQ_MessageHandler *handlers);
319
320
321/**
322 * Count the handlers in a handler array.
323 *
324 * @param handlers Array of handlers to be counted.
325 * @return The number of handlers in the array.
326 */
327unsigned int
328GNUNET_MQ_count_handlers (const struct GNUNET_MQ_MessageHandler *handlers);
329
330
331/**
308 * Message handler for a specific message type. 332 * Message handler for a specific message type.
309 */ 333 */
310struct GNUNET_MQ_MessageHandler 334struct GNUNET_MQ_MessageHandler