[Tinyos-2-commits] CVS: tinyos-2.x/tos/interfaces LogWrite.nc, 1.1.2.7, 1.1.2.8

David Gay idgay at users.sourceforge.net
Fri Sep 22 15:00:12 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/interfaces
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv16957/tos/interfaces

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	LogWrite.nc 
Log Message:
add recordsLost "result" to appendDone event


Index: LogWrite.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/interfaces/LogWrite.nc,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -C2 -d -r1.1.2.7 -r1.1.2.8
*** LogWrite.nc	20 Jun 2006 18:56:06 -0000	1.1.2.7
--- LogWrite.nc	22 Sep 2006 22:00:10 -0000	1.1.2.8
***************
*** 61,68 ****
     * @param buf buffer that written data was read from.
     * @param len number of bytes actually written (valid even in case of error)
     * @param error SUCCESS if append was possible, ESIZE if the (linear) log
     *    is full and FAIL for other errors.
     */
!   event void appendDone(void* buf, storage_len_t len, error_t error);
    
    /**
--- 61,71 ----
     * @param buf buffer that written data was read from.
     * @param len number of bytes actually written (valid even in case of error)
+    * @param records_lost TRUE if this append destroyed some old records from
+    *   the beginning of the log (only possible for circular logs).
     * @param error SUCCESS if append was possible, ESIZE if the (linear) log
     *    is full and FAIL for other errors.
     */
!   event void appendDone(void* buf, storage_len_t len, bool recordsLost,
! 			error_t error);
    
    /**



More information about the Tinyos-2-commits mailing list