X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Flib%2Fnet%2Ftosthread_collection.h;h=b3967c4e02cc99e9a042c408aaab36a5fe67f909;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=62daa345975c2f3a9ee3d3a795f6d051536d0ae3;hpb=86e1669668f27671d2fd716bfb4f7ed54b97b940;p=tinyos-2.x.git diff --git a/tos/lib/tosthreads/lib/net/tosthread_collection.h b/tos/lib/tosthreads/lib/net/tosthread_collection.h index 62daa345..b3967c4e 100644 --- a/tos/lib/tosthreads/lib/net/tosthread_collection.h +++ b/tos/lib/tosthreads/lib/net/tosthread_collection.h @@ -31,14 +31,18 @@ /** * @author Kevin Klues + * @author Chieh-Jan Mike Liang */ #ifndef TOSTHREAD_COLLECTION_H #define TOSTHREAD_COLLECTION_H -#include "message.h" -#include "AM.h" -#include "TinyError.h" +#include "ccollection.h" + +extern error_t collectionRoutingStart(); +extern error_t collectionRoutingStop(); + +extern error_t collectionSetCollectionId(uint8_t clientid, collection_id_t collectionid); extern error_t collectionReceive(message_t* m, uint32_t timeout, collection_id_t id); extern error_t collectionSnoop(message_t* m, uint32_t timeout, collection_id_t id);