convert fs publish to MQ
[oweals/gnunet.git] / src / include / gnunet_psyc_message.h
index d16510747b4d8b134e1641179242904ad2292abf..42ff0ea86cd46880b5b1b8c69f1f271c161729ad 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2012, 2013 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2012, 2013 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -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,11 +101,6 @@ 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;
 
 /**
@@ -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.