X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Flib%2Fnet%2FBlockingCollectionSenderP.nc;h=e2ba37e34773209bb0507977081b0041eb66b9f3;hb=adf1de6c009d13b7b52e68535c63b28f59c97400;hp=f6c498ecf7c3028dd7d9ef4e8f1e4fd025a51174;hpb=dba7b3ba714b04c28070ed1119453aeef90b2776;p=tinyos-2.x.git diff --git a/tos/lib/tosthreads/lib/net/BlockingCollectionSenderP.nc b/tos/lib/tosthreads/lib/net/BlockingCollectionSenderP.nc index f6c498ec..e2ba37e3 100644 --- a/tos/lib/tosthreads/lib/net/BlockingCollectionSenderP.nc +++ b/tos/lib/tosthreads/lib/net/BlockingCollectionSenderP.nc @@ -22,31 +22,30 @@ /* * @author Chieh-Jan Mike Liang + * @author Kevin Klues */ -generic configuration BlockingCollectionSenderP (collection_id_t collectid, uint8_t clientid) { +configuration BlockingCollectionSenderP { provides { - interface BlockingSend; + interface BlockingSend[uint8_t id]; } } implementation { components BlockingCollectionSenderImplP, CollectionC as Collector, - new CollectionIdP(collectid), MutexC, SystemCallC, MainC, LedsC; MainC.SoftwareInit -> BlockingCollectionSenderImplP; - BlockingSend = BlockingCollectionSenderImplP.BlockingSend[clientid]; + BlockingSend = BlockingCollectionSenderImplP.BlockingSend; BlockingCollectionSenderImplP.Mutex -> MutexC; BlockingCollectionSenderImplP.SystemCall -> SystemCallC; BlockingCollectionSenderImplP.Send -> Collector; BlockingCollectionSenderImplP.Packet -> Collector; BlockingCollectionSenderImplP.Leds -> LedsC; - - Collector.CollectionId[clientid] -> CollectionIdP; } +