// $Id$
-/* tab:4
+/*
* "Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
*
* the component's data. This would cause the mote to possibly
* instead send a packet it most recently received.
*
- * @param msg the receied packet
- * @param payload a pointer to the packet's payload
+ * @param 'message_t* ONE msg' the receied packet
+ * @param 'void* COUNT(len) payload' a pointer to the packet's payload
* @param len the length of the data region pointed to by payload
- * @return a packet buffer for the stack to use for the next
+ * @return 'message_t* ONE' a packet buffer for the stack to use for the next
* received packet.
*/
event message_t* receive(message_t* msg, void* payload, uint8_t len);
-
- /**
- * Return point to a protocol's payload region in a packet. If len
- * is not NULL, getPayload will return the length of the payload in
- * it. This call is identical to <TT>Packet.getPayload</TT>, and is
- * included in Receive as a convenience.
- *
- * @param msg the packet
- * @param len a pointer to where to store the payload length
- * @return a pointer to the payload of the packet
- */
- command void* getPayload(message_t* msg, uint8_t* len);
-
- /**
- * Return the length of the payload of msg. This call is identical
- * to <TT>Packet.payloadLength</TT>, and is included in Receive as a
- * convenience.
- *
- * @param msg the packet
- * @return the length of the packet's payload
- */
- command uint8_t payloadLength(message_t* msg);
}