summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2019-07-21 20:18:24 +0200
committert3sserakt <t3ss@posteo.de>2019-07-21 20:18:24 +0200
commitf096bdce8eaeaabc42f2a015bf29c422b3d25719 (patch)
tree694c140bd741f7b1c24b5e55e8644002ae53cae4 /src/util
parentdfeef02bf7882cdfb952430cfbdb9793ecd780e2 (diff)
parent160edc4127f1698cca25d5708157ea3187421596 (diff)
downloadgnunet-f096bdce8eaeaabc42f2a015bf29c422b3d25719.tar.gz
gnunet-f096bdce8eaeaabc42f2a015bf29c422b3d25719.zip
Merge branch 'cadet-new-options'
Diffstat (limited to 'src/util')
-rw-r--r--src/util/mq.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index c9cfad2bd..03b0f3a2a 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -1150,6 +1150,28 @@ GNUNET_MQ_destroy_notify_cancel (
1150 * @param[in|out] env element to insert at the tail 1150 * @param[in|out] env element to insert at the tail
1151 */ 1151 */
1152void 1152void
1153GNUNET_MQ_dll_insert_head (struct GNUNET_MQ_Envelope **env_head,
1154 struct GNUNET_MQ_Envelope **env_tail,
1155 struct GNUNET_MQ_Envelope *env)
1156{
1157
1158 GNUNET_CONTAINER_DLL_insert (*env_head, *env_tail, env);
1159}
1160
1161
1162/**
1163 * Insert @a env into the envelope DLL starting at @a env_head
1164 * Note that @a env must not be in any MQ while this function
1165 * is used with DLLs defined outside of the MQ module. This
1166 * is just in case some application needs to also manage a
1167 * FIFO of envelopes independent of MQ itself and wants to
1168 * re-use the pointers internal to @a env. Use with caution.
1169 *
1170 * @param[in|out] env_head of envelope DLL
1171 * @param[in|out] env_tail tail of envelope DLL
1172 * @param[in|out] env element to insert at the tail
1173 */
1174void
1153GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head, 1175GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head,
1154 struct GNUNET_MQ_Envelope **env_tail, 1176 struct GNUNET_MQ_Envelope **env_tail,
1155 struct GNUNET_MQ_Envelope *env) 1177 struct GNUNET_MQ_Envelope *env)