diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-16 20:08:07 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-16 20:08:07 +0000 |
commit | 4a9f4a60c780adce58334d7b083f921c8b7d39ef (patch) | |
tree | d95c004ba1398c89c39e2d61a863080c0a941410 /src/include/gnunet_mq_lib.h | |
parent | bc57c1cebf65b9d10c97961cc0cd8a7bf166d76e (diff) | |
download | gnunet-4a9f4a60c780adce58334d7b083f921c8b7d39ef.tar.gz gnunet-4a9f4a60c780adce58334d7b083f921c8b7d39ef.zip |
Rename MQ_evict to MQ_evacuate and make API nicer
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r-- | src/include/gnunet_mq_lib.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index b339fe0eb..95afb6d75 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h | |||
@@ -415,6 +415,7 @@ struct GNUNET_MQ_MessageHandler | |||
415 | */ | 415 | */ |
416 | struct GNUNET_MQ_Envelope * | 416 | struct GNUNET_MQ_Envelope * |
417 | GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, | 417 | GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, |
418 | |||
418 | uint16_t size, | 419 | uint16_t size, |
419 | uint16_t type); | 420 | uint16_t type); |
420 | 421 | ||
@@ -727,8 +728,7 @@ GNUNET_MQ_impl_current (struct GNUNET_MQ_Handle *mq); | |||
727 | 728 | ||
728 | /** | 729 | /** |
729 | * Get the message that is currently being sent when cancellation of that | 730 | * Get the message that is currently being sent when cancellation of that |
730 | * message is requested. Returns an opaque pointer which contains the memory | 731 | * message is requested. The returned buffer must be freed by the caller. |
731 | * for the message, as well as some control data used by mq. | ||
732 | * | 732 | * |
733 | * This function may be called at most once in the cancel_impl | 733 | * This function may be called at most once in the cancel_impl |
734 | * function of a message queue. | 734 | * function of a message queue. |
@@ -736,11 +736,11 @@ GNUNET_MQ_impl_current (struct GNUNET_MQ_Handle *mq); | |||
736 | * Use this function to avoid copying a half-sent message. | 736 | * Use this function to avoid copying a half-sent message. |
737 | * | 737 | * |
738 | * @param mq message queue | 738 | * @param mq message queue |
739 | * @parem msg pointer to store the message being canceled | 739 | * @return pointer to store the message being canceled, |
740 | * @return memory block that contains the message, must be freed by the caller | 740 | * must be freed by the caller |
741 | */ | 741 | */ |
742 | void * | 742 | struct GNUNET_MessageHeader * |
743 | GNUNET_MQ_impl_cancel_evict (struct GNUNET_MQ_Handle *mq, struct GNUNET_MessageHeader **msg); | 743 | GNUNET_MQ_impl_cancel_evacuate (struct GNUNET_MQ_Handle *mq); |
744 | 744 | ||
745 | 745 | ||
746 | /** | 746 | /** |