]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/tosthreads/lib/net/ctp/CCollectionC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / lib / tosthreads / lib / net / ctp / CCollectionC.nc
index 7508b706aa88e0deae73ce1443a59ccf64a58b65..5bee546cca05782d29a429fac32f2acfa8d95370 100644 (file)
@@ -44,21 +44,13 @@ implementation {
   components BlockingCollectionSnooperP;
   components BlockingCollectionSenderP;
   components BlockingCollectionControlC;
-  
-  //Allocate enough room in the message queue for all message types.
-  //This number needs to be 255-1-12 because 
-  //(1) The max number that can be provided to the Queue underneath for its size is 255
-  //(2) uniqueN() will give you values from 0..N constituting N+1 unique numbers
-  //(3) there are 12 spaces reserved in the send queue in CtpP for forwarding messages.
-  //I don't like this implementation, but it will do for now....
-  enum {
-   FIRST_CLIENT = uniqueN(UQ_CTP_CLIENT, 255-1-12),
-  };
+  components CCollectionIdP;
   
   CCP.BlockingReceive -> BlockingCollectionReceiverP;
   CCP.BlockingSnoop -> BlockingCollectionSnooperP;
   CCP.BlockingSend -> BlockingCollectionSenderP;
   CCP.RoutingControl -> BlockingCollectionControlC;
+  CCP.CCollectionId -> CCollectionIdP;
   
   components CollectionC;
   CCP.Packet -> CollectionC;