summaryrefslogtreecommitdiff
path: root/src/include/gnunet_mq_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r--src/include/gnunet_mq_lib.h33
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
*/
GNUNET_MQ_PREF_OUT_OF_ORDER = 256,
- /**
- * Flag to indicate no buffering.
- */
- GNUNET_MQ_PREF_NO_BUFFER = 512,
-
- /**
- * Flag to indicate default
- */
- GNUNET_MQ_PREF_DEFAULT = 1024,
-
- /**
- * Flag to indicate reliable
- */
- GNUNET_MQ_PREF_RELIABLE = 2048
-
};
@@ -401,6 +386,24 @@ typedef void (*GNUNET_MQ_ErrorHandler) (void *cls, enum GNUNET_MQ_Error error);
* @param[in|out] env element to insert at the tail
*/
void
+GNUNET_MQ_dll_insert_head (struct GNUNET_MQ_Envelope **env_head,
+ struct GNUNET_MQ_Envelope **env_tail,
+ struct GNUNET_MQ_Envelope *env);
+
+
+/**
+ * Insert @a env into the envelope DLL starting at @a env_head
+ * Note that @a env must not be in any MQ while this function
+ * is used with DLLs defined outside of the MQ module. This
+ * is just in case some application needs to also manage a
+ * FIFO of envelopes independent of MQ itself and wants to
+ * re-use the pointers internal to @a env. Use with caution.
+ *
+ * @param[in|out] env_head of envelope DLL
+ * @param[in|out] env_tail tail of envelope DLL
+ * @param[in|out] env element to insert at the tail
+ */
+void
GNUNET_MQ_dll_insert_tail (struct GNUNET_MQ_Envelope **env_head,
struct GNUNET_MQ_Envelope **env_tail,
struct GNUNET_MQ_Envelope *env);