]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/interfaces/Receive.nc
Remove bogus 'tab:4' and 'tab:2' markers.
[tinyos-2.x.git] / tos / interfaces / Receive.nc
index 91a8d6a865df37aa6c1ee08a4f7b37e52f97f9e1..47f9f9066c86580959bdfce944903b3cf2487414 100644 (file)
@@ -1,5 +1,5 @@
 // $Id$
-/*                                                                     tab:4
+/*
  * "Copyright (c) 2004-2005 The Regents of the University  of California.  
  * All rights reserved.
  *
@@ -57,35 +57,13 @@ interface Receive {
    * 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);
   
 }