/*
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
*
* @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,
*
* @return #GNUNET_OK on success,
* #GNUNET_SYSERR on parse error.
+ *
+ * FIXME: arg order
*/
int
GNUNET_PSYC_message_parse (const struct GNUNET_PSYC_MessageHeader *msg,
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;
/**
/**
* 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.
/**
* 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.