From: David Barksdale Date: Sat, 22 Oct 2016 22:29:06 +0000 (+0000) Subject: cadet_api.c uses GNUNET_MQ_impl_current X-Git-Tag: initial-import-from-subversion-38251~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ac30790d29b30c29aeeb163f26dda90d1c63c08;p=oweals%2Fgnunet.git cadet_api.c uses GNUNET_MQ_impl_current --- diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index 6c193e54e..bcf923fcc 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h @@ -746,6 +746,19 @@ void * GNUNET_MQ_impl_state (struct GNUNET_MQ_Handle *mq); +/** + * Get the message that should currently be sent. + * Fails if there is no current message. + * Only useful for implementing message queues, + * results in undefined behavior if not used carefully. + * + * @param mq message queue with the current message + * @return message to send, never NULL + */ +const struct GNUNET_MessageHeader * +GNUNET_MQ_impl_current (struct GNUNET_MQ_Handle *mq); + + #endif /** @} */ /* end of group mq */