]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/unique/UniqueReceiveP.nc
mark more modules as safe code
[tinyos-2.x.git] / tos / chips / cc2420 / unique / UniqueReceiveP.nc
index bc3faf07762ae126302a9fc312991e4b6cd0d225..445848ea7d4151f0a1f1c1f4939d18e981b988cb 100644 (file)
@@ -38,7 +38,7 @@
  
 #include "CC2420.h"
 
-module UniqueReceiveP {
+module UniqueReceiveP @safe() {
   provides {
     interface Receive;
     interface Receive as DuplicateReceive;
@@ -81,25 +81,6 @@ implementation {
   bool hasSeen(uint16_t msgSource, uint8_t msgDsn);
   void insert(uint16_t msgSource, uint8_t msgDsn);
   
-  /***************** Receive Commands ***************/
-  command void *Receive.getPayload(message_t* msg, uint8_t* len) {
-    return call SubReceive.getPayload(msg, len);
-  }
-
-  command uint8_t Receive.payloadLength(message_t* msg) {
-    return call SubReceive.payloadLength(msg);
-  }
-  
-  
-  /***************** DuplicateReceive Commands ****************/
-  command void *DuplicateReceive.getPayload(message_t* msg, uint8_t* len) {
-    return call SubReceive.getPayload(msg, len);
-  }
-
-  command uint8_t DuplicateReceive.payloadLength(message_t* msg) {
-    return call SubReceive.payloadLength(msg);
-  }
-  
   /***************** SubReceive Events *****************/
   event message_t *SubReceive.receive(message_t* msg, void* payload, 
       uint8_t len) {