move to new client API: remove old client API
[oweals/gnunet.git] / src / include / gnunet_mq_lib.h
index 6c193e54e87b79b188f9b4a45f11c64e1b009d66..bcf923fcc7943ed23be7439105035ddffc5b3c42 100644 (file)
@@ -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 */