diff options
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r-- | src/include/gnunet_mq_lib.h | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index d3f4c9717..f3073d54b 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h | |||
@@ -298,21 +298,6 @@ enum GNUNET_MQ_PriorityPreferences | |||
298 | */ | 298 | */ |
299 | GNUNET_MQ_PREF_OUT_OF_ORDER = 256, | 299 | GNUNET_MQ_PREF_OUT_OF_ORDER = 256, |
300 | 300 | ||
301 | /** | ||
302 | * Flag to indicate no buffering. | ||
303 | */ | ||
304 | GNUNET_MQ_PREF_NO_BUFFER = 512, | ||
305 | |||
306 | /** | ||
307 | * Flag to indicate default | ||
308 | */ | ||
309 | GNUNET_MQ_PREF_DEFAULT = 1024, | ||
310 | |||
311 | /** | ||
312 | * Flag to indicate reliable | ||
313 | */ | ||
314 | GNUNET_MQ_PREF_RELIABLE = 2048 | ||
315 | |||
316 | }; | 301 | }; |
317 | 302 | ||
318 | 303 | ||
@@ -401,6 +386,24 @@ typedef void (*GNUNET_MQ_ErrorHandler) (void *cls, enum GNUNET_MQ_Error error); | |||
401 | * @param[in|out] env element to insert at the tail | 386 | * @param[in|out] env element to insert at the tail |
402 | */ | 387 | */ |
403 | void | 388 | void |
389 | GNUNET_MQ_dll_insert_head (struct GNUNET_MQ_Envelope **env_head, | ||
390 | struct GNUNET_MQ_Envelope **env_tail, | ||
391 | struct GNUNET_MQ_Envelope *env); | ||
392 | |||
393 | |||
394 | /** | ||
395 | * Insert @a env into the envelope DLL starting at @a env_head | ||
396 | * Note that @a env must not be in any MQ while this function | ||
397 | * is used with DLLs defined outside of the MQ module. This | ||
398 | * is just in case some application needs to also manage a | ||
399 | * FIFO of envelopes independent of MQ itself and wants to | ||
400 | * re-use the pointers internal to @a env. Use with caution. | ||
401 | * | ||
402 | * @param[in|out] env_head of envelope DLL | ||
403 | * @param[in|out] env_tail tail of envelope DLL | ||
404 | * @param[in|out] env element to insert at the tail | ||
405 | */ | ||
406 | void | ||
404 | GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head, | 407 | GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head, |
405 | struct GNUNET_MQ_Envelope **env_tail, | 408 | struct GNUNET_MQ_Envelope **env_tail, |
406 | struct GNUNET_MQ_Envelope *env); | 409 | struct GNUNET_MQ_Envelope *env); |