fix whitespace
[oweals/gnunet.git] / src / include / gnunet_psyc_message.h
index 3748832ba13a0a82b68c836c7840da7bafd7b8db..e6337d0936951b204413d1905df4faacd55b2912 100644 (file)
@@ -60,6 +60,8 @@ extern "C"
  *
  * @return Message header with size information,
  *         followed by the message parts.
+ *
+ * FIXME: arg order
  */
 struct GNUNET_PSYC_Message *
 GNUNET_PSYC_message_create (const char *method_name,
@@ -83,6 +85,8 @@ GNUNET_PSYC_message_create (const char *method_name,
  *
  * @return #GNUNET_OK on success,
  *         #GNUNET_SYSERR on parse error.
+ *
+ * FIXME: arg order
  */
 int
 GNUNET_PSYC_message_parse (const struct GNUNET_PSYC_MessageHeader *msg,
@@ -97,18 +101,13 @@ GNUNET_PSYC_log_message (enum GNUNET_ErrorType kind,
                          const struct GNUNET_MessageHeader *msg);
 
 
-int
-GNUNET_PSYC_check_message_parts (uint16_t data_size, const char *data,
-                                 uint16_t *first_ptype, uint16_t *last_ptype);
-
-
 struct GNUNET_PSYC_TransmitHandle;
 
 /**
  * Create a transmission handle.
  */
 struct GNUNET_PSYC_TransmitHandle *
-GNUNET_PSYC_transmit_create ();
+GNUNET_PSYC_transmit_create (struct GNUNET_MQ_Handle *mq);
 
 
 /**
@@ -209,8 +208,10 @@ GNUNET_PSYC_receive_reset (struct GNUNET_PSYC_ReceiveHandle *recv);
 /**
  * Handle incoming PSYC message.
  *
- * @param recv  Receive handle.
- * @param msg   The message.
+ * @param recv
+ *        Receive handle.
+ * @param msg
+ *        The message.
  *
  * @return #GNUNET_OK on success,
  *         #GNUNET_SYSERR on receive error.
@@ -223,10 +224,14 @@ GNUNET_PSYC_receive_message (struct GNUNET_PSYC_ReceiveHandle *recv,
 /**
  * Check if @a data contains a series of valid message parts.
  *
- * @param      data_size    Size of @a data.
- * @param      data        Data.
- * @param[out] first_ptype  Type of first message part.
- * @param[out] last_ptype   Type of last message part.
+ * @param data_size
+ *        Size of @a data.
+ * @param data
+ *        Data.
+ * @param[out] first_ptype
+ *        Type of first message part.
+ * @param[out] last_ptype
+ *        Type of last message part.
  *
  * @return Number of message parts found in @a data.
  *         or GNUNET_SYSERR if the message contains invalid parts.