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.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index 81100d7d8..f3073d54b 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -296,7 +296,7 @@ enum GNUNET_MQ_PriorityPreferences
296 /** 296 /**
297 * Flag to indicate that out-of-order delivery is OK. 297 * Flag to indicate that out-of-order delivery is OK.
298 */ 298 */
299 GNUNET_MQ_PREF_OUT_OF_ORDER = 256 299 GNUNET_MQ_PREF_OUT_OF_ORDER = 256,
300 300
301}; 301};
302 302
@@ -386,6 +386,24 @@ typedef void (*GNUNET_MQ_ErrorHandler) (void *cls, enum GNUNET_MQ_Error error);
386 * @param[in|out] env element to insert at the tail 386 * @param[in|out] env element to insert at the tail
387 */ 387 */
388void 388void
389GNUNET_MQ_dll_insert_head (struct GNUNET_MQ_Envelope **env_head,
390 struct GNUNET_MQ_Envelope **env_tail,
391 struct GNUNET_MQ_Envelope *env);
392
393
394/**
395 * Insert @a env into the envelope DLL starting at @a env_head
396 * Note that @a env must not be in any MQ while this function
397 * is used with DLLs defined outside of the MQ module. This
398 * is just in case some application needs to also manage a
399 * FIFO of envelopes independent of MQ itself and wants to
400 * re-use the pointers internal to @a env. Use with caution.
401 *
402 * @param[in|out] env_head of envelope DLL
403 * @param[in|out] env_tail tail of envelope DLL
404 * @param[in|out] env element to insert at the tail
405 */
406void
389GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head, 407GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head,
390 struct GNUNET_MQ_Envelope **env_tail, 408 struct GNUNET_MQ_Envelope **env_tail,
391 struct GNUNET_MQ_Envelope *env); 409 struct GNUNET_MQ_Envelope *env);