[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/serial Serial.h, 1.4,
1.5 SerialActiveMessageP.nc, 1.7, 1.8
Phil Levis
scipio at users.sourceforge.net
Tue Feb 19 14:00:11 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/serial
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21993
Modified Files:
Serial.h SerialActiveMessageP.nc
Log Message:
Add metadata.
Index: Serial.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/serial/Serial.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Serial.h 12 Dec 2006 18:23:31 -0000 1.4
--- Serial.h 19 Feb 2008 22:00:08 -0000 1.5
***************
*** 123,125 ****
--- 123,129 ----
} serial_packet_t;
+ typedef nx_struct serial_metadata {
+ bool acked;
+ } serial_metadata_t;
+
#endif
Index: SerialActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/serial/SerialActiveMessageP.nc,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** SerialActiveMessageP.nc 19 Feb 2008 21:33:13 -0000 1.7
--- SerialActiveMessageP.nc 19 Feb 2008 22:00:08 -0000 1.8
***************
*** 50,53 ****
--- 50,57 ----
return (serial_header_t*)(msg->data - sizeof(serial_header_t));
}
+
+ serial_metadata_t* getMetadata(message_t* msg) {
+ return (serial_metadata_t*)(msg->metadata);
+ }
command error_t AMSend.send[am_id_t id](am_addr_t dest,
More information about the Tinyos-2-commits
mailing list