diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-07-17 10:50:45 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-07-17 10:50:45 +0200 |
commit | a7ccf828ae4f7e306ffe3e7efebc0e678615f6c5 (patch) | |
tree | 71489a2649bb3c9100fccc19d135d832d3cbea05 /src/util/mq.c | |
parent | 963c4fe2e94208a251b269e3a6918a71e8de1939 (diff) | |
download | gnunet-a7ccf828ae4f7e306ffe3e7efebc0e678615f6c5.tar.gz gnunet-a7ccf828ae4f7e306ffe3e7efebc0e678615f6c5.zip |
remove duplication MQ options, make conversation build
Diffstat (limited to 'src/util/mq.c')
-rw-r--r-- | src/util/mq.c | 22 |
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 | */ |
1152 | void | 1152 | void |
1153 | GNUNET_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 | */ | ||
1174 | void | ||
1153 | GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head, | 1175 | GNUNET_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) |