]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/interfaces/AMSend.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / tos / interfaces / AMSend.nc
index 6ccc5af86e5a88688edfa77d266262096ded4a0b..27c93d226ed7e23ec0efa4a8b83fd29e62464669 100644 (file)
@@ -114,15 +114,14 @@ interface AMSend {
 
    /**
     * Return a pointer to a protocol's payload region in a packet.
-    * The length of this region is maxPayloadLength(). This command
-    * behaves similarly to <tt>Packet.getPayload</tt> (minus the
-    * length parameter) and is included in this interface
+    * This command behaves identically to <tt>Packet.getPayload</tt>
+    * (minus the length parameter) and is included in this interface
     * as a convenience.
     *
     * @param  msg    the packet
     * @return        the payload of the packet
     */
-  command void* getPayload(message_t* msg);
+  command void* getPayload(message_t* msg, uint8_t len);
 
   
 }