diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2016-10-22 22:29:06 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2016-10-22 22:29:06 +0000 |
commit | 5ac30790d29b30c29aeeb163f26dda90d1c63c08 (patch) | |
tree | 5e5d4e9dee045ee10fe6fd244431547afb4d7599 /src/include/gnunet_mq_lib.h | |
parent | daaf913352faafac1e1a1642ea126b8a1c6777a5 (diff) | |
download | gnunet-5ac30790d29b30c29aeeb163f26dda90d1c63c08.tar.gz gnunet-5ac30790d29b30c29aeeb163f26dda90d1c63c08.zip |
cadet_api.c uses GNUNET_MQ_impl_current
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r-- | src/include/gnunet_mq_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 * | |||
746 | GNUNET_MQ_impl_state (struct GNUNET_MQ_Handle *mq); | 746 | GNUNET_MQ_impl_state (struct GNUNET_MQ_Handle *mq); |
747 | 747 | ||
748 | 748 | ||
749 | /** | ||
750 | * Get the message that should currently be sent. | ||
751 | * Fails if there is no current message. | ||
752 | * Only useful for implementing message queues, | ||
753 | * results in undefined behavior if not used carefully. | ||
754 | * | ||
755 | * @param mq message queue with the current message | ||
756 | * @return message to send, never NULL | ||
757 | */ | ||
758 | const struct GNUNET_MessageHeader * | ||
759 | GNUNET_MQ_impl_current (struct GNUNET_MQ_Handle *mq); | ||
760 | |||
761 | |||
749 | #endif | 762 | #endif |
750 | 763 | ||
751 | /** @} */ /* end of group mq */ | 764 | /** @} */ /* end of group mq */ |