From 88a0df3dcc38c6e82f483bff386c87d8e1ec4459 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 22 Feb 2017 17:32:15 +0100 Subject: converting 'vpn' to new CADET API, not tested/testable, as exit is not converted yet --- src/include/gnunet_mq_lib.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index b7f1eecaa..cb4affe1e 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h @@ -557,6 +557,17 @@ GNUNET_MQ_env_get_options (struct GNUNET_MQ_Envelope *env, uint64_t *flags); +/** + * Remove the first envelope that has not yet been sent from the message + * queue and return it. + * + * @param mq queue to remove envelope from + * @return NULL if queue is empty (or has no envelope that is not under transmission) + */ +struct GNUNET_MQ_Envelope * +GNUNET_MQ_unsent_head (struct GNUNET_MQ_Handle *mq); + + /** * Set application-specific options for this queue. * -- cgit v1.2.3