gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26914 - gnunet/src/set


From: gnunet
Subject: [GNUnet-SVN] r26914 - gnunet/src/set
Date: Wed, 17 Apr 2013 12:47:02 +0200

Author: dold
Date: 2013-04-17 12:47:02 +0200 (Wed, 17 Apr 2013)
New Revision: 26914

Modified:
   gnunet/src/set/mq.h
Log:
partial docs


Modified: gnunet/src/set/mq.h
===================================================================
--- gnunet/src/set/mq.h 2013-04-17 10:41:37 UTC (rev 26913)
+++ gnunet/src/set/mq.h 2013-04-17 10:47:02 UTC (rev 26914)
@@ -50,6 +50,21 @@
   uint16_t type;
 };
 
+/**
+ * Callback used for notifications
+ *
+ * @param cls closure
+ */
+typedef void (*GNUNET_MQ_NotifyCallback) (void *cls);
+
+/**
+ * Create a new message for MQ.
+ * 
+ * @param mhp message header to store the allocated message header in, can be 
NULL
+ * @param size size of the message to allocate
+ * @param type type of the message, will be set in the allocated message
+ * @param return the allocated MQ message
+ */
 struct GNUNET_MQ_Message *
 GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, uint16_t size, uint16_t 
type);
 
@@ -57,16 +72,24 @@
 GNUNET_MQ_send (struct GNUNET_MQ_MessageQueue *mq, struct GNUNET_MQ_Message 
*mqm);
 
 
+/**
+ * Associate the assoc_data in mq with a unique request id.
+ *
+ * @param mq message queue, id will be unique for the queue
+ * @param mqm message to associate
+ * @param data to associate
+ */
+uint32_t
+GNUNET_MQ_assoc_add (struct GNUNET_MQ_MessageQueue *mq,
+                     struct GNUNET_MQ_Message *mqm,
+                     void *assoc_data);
+
 void *
 GNUNET_MQ_assoc_get (struct GNUNET_MQ_MessageQueue *mq, uint32_t request_id);
 
 void *
 GNUNET_MQ_assoc_remove (struct GNUNET_MQ_MessageQueue *mq, uint32_t 
request_id);
 
-uint32_t
-GNUNET_MQ_assoc_add (struct GNUNET_MQ_MessageQueue *mq,
-                     struct GNUNET_MQ_Message *mqm,
-                     void *assoc_data);
 
 
 struct GNUNET_MQ_MessageQueue *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]